Handle errors from bus_setup_intr().
Found by: Coverity Prevent (tm) CID: 1066
This commit is contained in:
parent
302dbc9a0e
commit
52db950ba9
@ -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 New Issue
Block a user