drm/amdgpu/irq: check if nbio funcs exist
Subsystems (2)
PATCH 1/1 drm/amdgpu/irq: check if nbio funcs exist
We need to check if the nbios funcs exist before
checking the individual pointers.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +4 -2
@@ -156,10 +156,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;
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20190901173854.8824-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org
Zhang, Hawking
Reviewed-by Hawking ZhangReviewed-by Hawking Zhang <[email protected]>
Sent from my iPhone
Quoted 36 lines · Alex Deucher
We need to check if the nbios funcs exist before
checking the individual pointers.Signed-off-by Alex Deucher <[email protected]>---
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c| 6 ++++--1 file changed, 4 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +4
-2@@ -156,10 +156,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;Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx