mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Handle errors from bus_setup_intr().
Found by: Coverity Prevent (tm) CID: 1066
This commit is contained in:
parent
68af68014e
commit
02da6fa190
1 changed files with 4 additions and 2 deletions
|
|
@ -378,8 +378,10 @@ ahbattach(device_t dev)
|
|||
goto error_exit;
|
||||
|
||||
/* Enable our interrupt */
|
||||
bus_setup_intr(dev, irq, INTR_TYPE_CAM|INTR_ENTROPY, NULL, ahbintr,
|
||||
ahb, &ih);
|
||||
if (bus_setup_intr(dev, irq, INTR_TYPE_CAM|INTR_ENTROPY, NULL, ahbintr,
|
||||
ahb, &ih) != 0)
|
||||
goto error_exit;
|
||||
|
||||
return (0);
|
||||
|
||||
error_exit:
|
||||
|
|
|
|||
Loading…
Reference in a new issue