]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: avoid null pointer dereference
authorGuchun Chen <guchun.chen@amd.com>
Tue, 17 Sep 2019 09:49:29 +0000 (17:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:10:59 +0000 (09:10 -0500)
commit0875c77499b791b8b008210be472490ed8da473c
treeffa20dffa9313914483d1f6f8f018c51b972caae
parent5453197167ea61cb39a0f68e82742e4219c224f2
drm/amdgpu: avoid null pointer dereference

null ptr should be checked first to avoid null ptr access

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c