[PATCH] drm/nouveau/nvif: Fix potential memory leak in nvif_vmm_ctor().
Danilo Krummrich
dakr at kernel.org
Sat Aug 9 12:38:21 UTC 2025
On 7/28/25 1:50 PM, Fanhua Li wrote:
> When the nvif_vmm_type is invalid, we will return error directly
> without freeing the args in nvif_vmm_ctor(), which leading a memory
> leak. Fix it by setting the ret -EINVAL and goto done.
>
> Reported-by: kernel test robot <lkp at intel.com>
> Closes: https://lore.kernel.org/all/202312040659.4pJpMafN-lkp@intel.com/
> Fixes: 6b252cf42281 ("drm/nouveau: nvkm/vmm: implement raw ops to manage uvmm")
> Signed-off-by: Fanhua Li <lifanhua5 at huawei.com>
Applied to drm-misc-fixes, thanks!
More information about the dri-devel
mailing list