Re: [PATCH] [v2] drm/lima: fix a memleak in lima_heap_alloc

2024-01-18 Thread Qiang Yu
applied to drm-misc-next On Wed, Jan 17, 2024 at 8:14 PM Qiang Yu wrote: > > Reviewed-by: Qiang Yu > > On Wed, Jan 17, 2024 at 3:14 PM Zhipeng Lu wrote: > > > > When lima_vm_map_bo fails, the resources need to be deallocated, or > > there will be memleaks. > > > > Fixes: 6aebc51d7aef ("drm/lima

Re: [PATCH] [v2] drm/lima: fix a memleak in lima_heap_alloc

2024-01-17 Thread Qiang Yu
Reviewed-by: Qiang Yu On Wed, Jan 17, 2024 at 3:14 PM Zhipeng Lu wrote: > > When lima_vm_map_bo fails, the resources need to be deallocated, or > there will be memleaks. > > Fixes: 6aebc51d7aef ("drm/lima: support heap buffer creation") > Signed-off-by: Zhipeng Lu > --- > Changelog: > > v2: rea

[PATCH] [v2] drm/lima: fix a memleak in lima_heap_alloc

2024-01-16 Thread Zhipeng Lu
When lima_vm_map_bo fails, the resources need to be deallocated, or there will be memleaks. Fixes: 6aebc51d7aef ("drm/lima: support heap buffer creation") Signed-off-by: Zhipeng Lu --- Changelog: v2: rearrange the error-handling to ladder tags. --- drivers/gpu/drm/lima/lima_gem.c | 23 +