linux/drivers/gpu/drm/lima
Zhipeng Lu ec6bb037e4 drm/lima: fix a memleak in lima_heap_alloc
[ Upstream commit 04ae3eb470 ]

When lima_vm_map_bo fails, the resources need to be deallocated, or
there will be memleaks.

Fixes: 6aebc51d7a ("drm/lima: support heap buffer creation")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240117071328.3811480-1-alexious@zju.edu.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:17:00 -04:00
..
Kconfig
lima_bcast.c
lima_bcast.h
lima_ctx.c sched.h: move pid helpers to pid.h 2023-12-20 19:26:31 -05:00
lima_ctx.h Revert "drm/lima: add usage counting method to ctx_mgr" 2023-04-05 08:40:47 +08:00
lima_devfreq.c drm/lima: Fix opp clkname setting in case of missing regulator 2022-11-14 19:08:21 +08:00
lima_devfreq.h
lima_device.c drm/sched: implement dynamic job-flow control 2023-11-10 02:54:29 +01:00
lima_device.h Revert "drm/lima: allocate unique id per drm_file" 2023-04-05 08:40:06 +08:00
lima_dlbu.c
lima_dlbu.h
lima_drv.c drm: Explicitly include correct DT includes 2023-07-21 09:12:43 +02:00
lima_drv.h Revert "drm/lima: allocate unique id per drm_file" 2023-04-05 08:40:06 +08:00
lima_dump.h
lima_gem.c drm/lima: fix a memleak in lima_heap_alloc 2024-03-26 18:17:00 -04:00
lima_gem.h
lima_gp.c
lima_gp.h
lima_l2_cache.c
lima_l2_cache.h
lima_mmu.c
lima_mmu.h
lima_pmu.c
lima_pmu.h
lima_pp.c
lima_pp.h
lima_regs.h
lima_sched.c drm/sched: implement dynamic job-flow control 2023-11-10 02:54:29 +01:00
lima_sched.h
lima_trace.c
lima_trace.h
lima_vm.c
lima_vm.h
Makefile