Handle errors from bus_setup_intr().

Found by:	Coverity Prevent (tm)
CID:		1066
This commit is contained in:
netchild 2007-04-01 16:55:31 +00:00
parent 302dbc9a0e
commit 52db950ba9

View File

@ -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: