]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b07a07c9e69e5d5c5bbde245170ecdc68ff71f9
treee2e487aebcecea8ce9a085de8738e29e5c154b67
parentdc819f34f27fdff46240c720f7695c6b0a01d2c6
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