diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c index 4ed6a4d0d7db..1f2628f445c4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c @@ -159,10 +159,12 @@ irqreturn_t amdgpu_irq_handler(int irq, void *arg) * register to check whether the interrupt is triggered or not, and properly * ack the interrupt if it is there */ - if (adev->nbio.funcs->handle_ras_controller_intr_no_bifring) + if (adev->nbio.funcs && + adev->nbio.funcs->handle_ras_controller_intr_no_bifring) adev->nbio.funcs->handle_ras_controller_intr_no_bifring(adev); - if (adev->nbio.funcs->handle_ras_err_event_athub_intr_no_bifring) + if (adev->nbio.funcs && + adev->nbio.funcs->handle_ras_err_event_athub_intr_no_bifring) adev->nbio.funcs->handle_ras_err_event_athub_intr_no_bifring(adev); return ret;