Skip to content
Snippets Groups Projects
Commit 6b374d83 authored by Dong Chenchen's avatar Dong Chenchen Committed by Alex Deucher
Browse files

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: 4624459c ("drm/amdgpu: add gang submit frontend v6")
Reviewed-by: default avatarLuben Tuikov <luben.tuikov@amd.com>
Signed-off-by: default avatarDong Chenchen <dongchenchen2@huawei.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 0480f101
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment