drm/amdgpu: set ip specific ras interface pointer to NULL after free it
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 2 Sep 2019 19:16:47 +0000 (03:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Sep 2019 22:41:29 +0000 (17:41 -0500)
commitd094aea312580f12232b546523dae20f54445469
treee2e487aebcecea8ce9a085de8738e29e5c154b67
parentd5ea093eebf022ec69970107db45dc06318d7e5a
drm/amdgpu: set ip specific ras interface pointer to NULL after free it

to prevent access to dangling pointers

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/nbio_v7_4.c
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c