linux/drivers/gpu/drm/nouveau/nvif
Fanhua Li bb8aeaa319 drm/nouveau/nvif: Fix potential memory leak in nvif_vmm_ctor().
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@intel.com>
Closes: https://lore.kernel.org/all/202312040659.4pJpMafN-lkp@intel.com/
Fixes: 6b252cf422 ("drm/nouveau: nvkm/vmm: implement raw ops to manage uvmm")
Signed-off-by: Fanhua Li <lifanhua5@huawei.com>
Link: https://lore.kernel.org/r/20250728115027.50878-1-lifanhua5@huawei.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2025-08-09 14:09:53 +02:00
..
chan506f.c drm/nouveau/gf100-: track chan progress with non-WFI semaphore release 2025-05-19 07:14:44 +10:00
chan906f.c drm/nouveau/gf100-: track chan progress with non-WFI semaphore release 2025-05-19 07:14:44 +10:00
chan.c drm/nouveau/nvif: fix null ptr deref on pre-fermi boards 2025-07-21 11:16:11 +02:00
chanc36f.c drm/nouveau/gf100-: track chan progress with non-WFI semaphore release 2025-05-19 07:14:44 +10:00
client.c
conn.c drm/nouveau/conn: Avoid -Wflex-array-member-not-at-end warning 2025-03-28 16:19:36 +01:00
device.c drm/nouveau: always map device 2024-07-27 03:05:35 +02:00
disp.c drm/nouveau/kms: add support for GB20x 2025-05-19 07:14:45 +10:00
driver.c
event.c
fifo.c
head.c
Kbuild drm/nouveau/gf100-: track chan progress with non-WFI semaphore release 2025-05-19 07:14:44 +10:00
mem.c
mmu.c
object.c drm/nouveau: Avoid multiple -Wflex-array-member-not-at-end warnings 2025-02-27 19:16:43 +01:00
outp.c drm/nouveau: outp: Use __member_size() helper 2025-04-23 16:53:24 +02:00
timer.c
user.c drm/nouveau: add support for GB20x 2025-05-19 07:14:45 +10:00
userc361.c
vmm.c drm/nouveau/nvif: Fix potential memory leak in nvif_vmm_ctor(). 2025-08-09 14:09:53 +02:00