aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ahb/ahb.c
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2007-04-01 16:55:31 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2007-04-01 16:55:31 +0000
commit02da6fa1900e70497e825966cd8b63e9406c099e (patch)
treed5910ca928a71bd09976126bd9359546a54e02bd /sys/dev/ahb/ahb.c
parent68af68014eeae5e9d03456dd33ae6a135e1ff1d8 (diff)
downloadsrc-02da6fa1900e70497e825966cd8b63e9406c099e.tar.gz
src-02da6fa1900e70497e825966cd8b63e9406c099e.zip
Handle errors from bus_setup_intr().
Found by: Coverity Prevent (tm) CID: 1066
Notes
Notes: svn path=/head/; revision=168219
Diffstat (limited to 'sys/dev/ahb/ahb.c')
-rw-r--r--sys/dev/ahb/ahb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ahb/ahb.c b/sys/dev/ahb/ahb.c
index 051688b49001..8887c80b11e5 100644
--- a/sys/dev/ahb/ahb.c
+++ b/sys/dev/ahb/ahb.c
@@ -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: