drm/amdgpu: Skip put_reset_domain if it doesn't exist
authorVignesh Chander <Vignesh.Chander@amd.com>
Wed, 28 Sep 2022 18:59:45 +0000 (14:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Sep 2022 13:43:52 +0000 (09:43 -0400)
commitf61a825aa86115dbdcaba25bba78e007b5e8e1b1
treed9a3a405c1a758574af4d8af78ab0af6725e6070
parente67135571e4073e1ee252f839d7a1ccf10f89410
drm/amdgpu: Skip put_reset_domain if it doesn't exist

For xgmi sriov, the reset is handled by host driver and hive->reset_domain
is not initialized so need to check if it exists before doing a put.

Signed-off-by: Vignesh Chander <Vignesh.Chander@amd.com>
Reviewed-by: Shaoyun Liu <Shaoyun.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h