drm/amdgpu: Fix the null pointer dereference to ras_manager
authorMa Jun <Jun.Ma2@amd.com>
Sat, 11 May 2024 07:48:02 +0000 (15:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 May 2024 21:40:36 +0000 (17:40 -0400)
commit4c11d30c95576937c6c35e6f29884761f2dddb43
tree0fe73c2ec43be2b14a987884840dff0207fe66bc
parent599142f948cf65ec054c84fb4bc170fe2838411a
drm/amdgpu: Fix the null pointer dereference to ras_manager

Check ras_manager before using it

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c