Handle errors from bus_setup_intr().

Found by:	Coverity Prevent (tm)
CID:		1066
This commit is contained in:
Alexander Leidinger 2007-04-01 16:55:31 +00:00
parent 68af68014e
commit 02da6fa190

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: