summaryrefslogtreecommitdiffstats
path: root/sys/arm/xscale/i8134x
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2011-10-27 10:21:40 +0000
committerkevlo <kevlo@FreeBSD.org>2011-10-27 10:21:40 +0000
commitc96884d89bc68f56bf0346be9741d5ff50e65732 (patch)
treef5e9e38eaac1e53f6b4652053e07776e2fafc78b /sys/arm/xscale/i8134x
parent198f18300e16e842f18b7bfea3e58033c90fd500 (diff)
downloadFreeBSD-src-c96884d89bc68f56bf0346be9741d5ff50e65732.zip
FreeBSD-src-c96884d89bc68f56bf0346be9741d5ff50e65732.tar.gz
Check the return value of BUS_SETUP_INTR()
Reviewed by: imp
Diffstat (limited to 'sys/arm/xscale/i8134x')
-rw-r--r--sys/arm/xscale/i8134x/i81342.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arm/xscale/i8134x/i81342.c b/sys/arm/xscale/i8134x/i81342.c
index 2d8783e..44ec3fd 100644
--- a/sys/arm/xscale/i8134x/i81342.c
+++ b/sys/arm/xscale/i8134x/i81342.c
@@ -429,10 +429,12 @@ i81342_setup_intr(device_t dev, device_t child, struct resource *ires,
int flags, driver_filter_t *filt, driver_intr_t *intr, void *arg,
void **cookiep)
{
-
+ int error;
- BUS_SETUP_INTR(device_get_parent(dev), child, ires, flags, filt, intr,
- arg, cookiep);
+ error = BUS_SETUP_INTR(device_get_parent(dev), child, ires, flags,
+ filt, intr, arg, cookiep);
+ if (error)
+ return (error);
arm_unmask_irq(rman_get_start(ires));
return (0);
}
OpenPOWER on IntegriCloud