From d98eb4da7ff4b636e687f71a1a8d95237e48c7e1 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 5 Aug 2024 02:33:42 +0000 Subject: [PATCH] drm/amdgpu: Check if NBIO funcs are NULL in amdgpu_device_baco_exit From Friedrich Vock 67b4592a7d74e57a5a0929eaf3ae30414ebd39ae in linux-6.6.y/6.6.44 0cdb3f9740844b9d95ca413e3fcff11f81223ecf in mainline linux --- sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c index 7e894d9a70b..81464ea3ab3 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c @@ -5775,7 +5775,7 @@ int amdgpu_device_baco_exit(struct drm_device *dev) adev->nbio.funcs->enable_doorbell_interrupt) adev->nbio.funcs->enable_doorbell_interrupt(adev, true); - if (amdgpu_passthrough(adev) && + if (amdgpu_passthrough(adev) && adev->nbio.funcs && adev->nbio.funcs->clear_doorbell_interrupt) adev->nbio.funcs->clear_doorbell_interrupt(adev); -- 2.20.1