]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix error handling in amdgpu_ras_recovery_init
authorFelix Kuehling <Felix.Kuehling@amd.com>
Thu, 3 Oct 2019 21:54:57 +0000 (17:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2019 20:09:33 +0000 (15:09 -0500)
commitda728705b4fe772db09bef912e6569468abb3b04
tree0bad14ae90dd05969dbbbfcb87eb0125882f5132
parent6839aeac0509e9e17172da8357616ebd0e026cb9
drm/amdgpu: Fix error handling in amdgpu_ras_recovery_init

Don't set a struct pointer to NULL before freeing its members. It's
hard to see what's happening due to a local pointer-to-pointer data
aliasing con->eh_data.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Tested-by: Philip Cox <Philip.Cox@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c