From: Thierry Reding <treding@xxxxxxxxxx> On Sat, 26 Nov 2022 15:33:14 +0800, Yang Yingliang wrote: > If context device has no IOMMU, the 'cdl->devs' is freed in > error path, but host1x_memory_context_list_init() doesn't > return an error code, so the module can be loaded successfully, > when it's unloading, the host1x_memory_context_list_free() is > called in host1x_remove(), it will cause double free. Set the > 'cdl->devs' to NULL after freeing it to avoid double free. > > [...] Applied, thanks! [1/2] gpu: host1x: fix potential double free if IOMMU is disabled (no commit info) Best regards, -- Thierry Reding <treding@xxxxxxxxxx>