]> 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)
commitb98a2f8bf350c448eb3fbee93d17970ee078bb2d
tree27a800ef697ae52e3859dca607a555f0a608d5aa
parentefb65db4a21fcf4369bc5d3b3a0dd236e0b7bb3f
drm/amdkfd: Fix NULL pointer dereference

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

Fixes: b5f4f9118b9888 ("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