Re: [PATCH] gpu/drm/radeon: fix two memleaks in radeon_vm_init

2023-12-14 Thread Alex Deucher
Applied. Thanks! On Thu, Dec 14, 2023 at 11:59 AM Zhipeng Lu wrote: > > When radeon_bo_create and radeon_vm_clear_bo fail, the vm->page_tables > allocated before need to be freed. However, neither radeon_vm_init > itself nor its caller have done such deallocation. > > Fixes: 6d2f2944e95e ("drm/r

[PATCH] gpu/drm/radeon: fix two memleaks in radeon_vm_init

2023-12-14 Thread Zhipeng Lu
When radeon_bo_create and radeon_vm_clear_bo fail, the vm->page_tables allocated before need to be freed. However, neither radeon_vm_init itself nor its caller have done such deallocation. Fixes: 6d2f2944e95e ("drm/radeon: use normal BOs for the page tables v4") Signed-off-by: Zhipeng Lu --- dri