OSDN Git Service

drm/amdgpu: Free ras cmd input buffer properly
authorHawking Zhang <Hawking.Zhang@amd.com>
Tue, 29 Aug 2023 15:20:27 +0000 (23:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 31 Aug 2023 22:12:13 +0000 (18:12 -0400)
commit9f051d6ff13fb20b424a86672db42746aa27d963
treeb1c5426ad79f25c198ee7d5cb43c8aa661e131e6
parent2031c46b09843c9f135468fe03a333f9fa0a30a7
drm/amdgpu: Free ras cmd input buffer properly

Do not access the pointer for ras input cmd buffer
if it is even not allocated.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Stanley Yang <Stanley.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c