linux/drivers/gpu/drm/amd
Dong Chenchen 2ebf61f2cf drm/amdgpu: Fix memory leak in amdgpu_cs_pass1
When p->gang_size equals 0, amdgpu_cs_pass1() will return directly
without freeing chunk_array, which will cause a memory leak issue,
this patch fixes it.

Fixes: 4624459c84 ("drm/amdgpu: add gang submit frontend v6")
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Dong Chenchen <dongchenchen2@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-11-10 15:30:34 -05:00
..
acp
amdgpu drm/amdgpu: Fix memory leak in amdgpu_cs_pass1 2022-11-10 15:30:34 -05:00
amdkfd drm/amdkfd: Make kfd_fill_cache_non_crat_info() as static 2022-11-09 17:41:42 -05:00
display drm/amd/display: delete the duplicate .set_odm_bypass initialization in dcn314_tg_funcs 2022-11-10 15:30:08 -05:00
include drm/amdgpu: Replace one-element array with flex-array member 2022-11-10 15:30:02 -05:00
pm drm/amdgpu: Ignore stop rlc on SRIOV environment. 2022-11-10 15:29:46 -05:00