]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Fix NULL pointer dereference
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 6 Apr 2022 20:58:24 +0000 (16:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Apr 2022 20:37:39 +0000 (16:37 -0400)
commit44804434a4ec0bfe1da7352dbd4d9c1ed279d232
tree27a800ef697ae52e3859dca607a555f0a608d5aa
parentbfeab1b0475fdcba74284385fe775de216eae6a6
drm/amdkfd: Fix NULL pointer dereference

Check that adev->gfx.ras is valid before using it.

Fixes: a193a0004d1a29 ("drm/amdgpu: add UTCL2 RAS poison query for Aldebaran (v2)")
CC: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c