Files
linux/drivers/gpu/drm/lima/lima_gem.c
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

9.1 KiB