drm/amdgpu: fix memory leak when ras is not supported on specific ip block
authorHawking Zhang <Hawking.Zhang@amd.com>
Sat, 31 Aug 2019 06:20:38 +0000 (14:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Sep 2019 22:36:22 +0000 (17:36 -0500)
commit8bf2485aec63b9a9cc81ad795e1bb7fda19bf33c
tree14366b8e2ab896d9f827d210f322afd22b11de03
parent4ce71be67b08d00729f4d8735e2b76d8b5882d2c
drm/amdgpu: fix memory leak when ras is not supported on specific ip block

free ras_if if ras is not supported

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c