diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-09-09 09:37:35 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-09-09 09:37:35 +0000 |
commit | 22fd26f0287afde7303368a6999f53d2aa8f7350 (patch) | |
tree | 4169ce113bba83c6c63e2f29a555b257bebe6482 /sys | |
parent | af62af4dd2b3607673b05cac79e28403d6a564b0 (diff) |
drm/amdgpu: the warning dereferencing obj for nbio_v7_4
From Jesse Zhang
7d265772e44d403071a2b573eac0db60250b1c21 in linux-6.6.y/6.6.50
d190b459b2a4304307c3468ed97477b808381011 in mainline linux
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/nbio_v7_4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/nbio_v7_4.c b/sys/dev/pci/drm/amd/amdgpu/nbio_v7_4.c index 685abf57ffd..977b956bf93 100644 --- a/sys/dev/pci/drm/amd/amdgpu/nbio_v7_4.c +++ b/sys/dev/pci/drm/amd/amdgpu/nbio_v7_4.c @@ -384,7 +384,7 @@ static void nbio_v7_4_handle_ras_controller_intr_no_bifring(struct amdgpu_device else WREG32_SOC15(NBIO, 0, mmBIF_DOORBELL_INT_CNTL, bif_doorbell_intr_cntl); - if (!ras->disable_ras_err_cnt_harvest) { + if (ras && !ras->disable_ras_err_cnt_harvest && obj) { /* * clear error status after ras_controller_intr * according to hw team and count ue number |