diff options
author | mjacob <mjacob@FreeBSD.org> | 2001-07-11 02:24:28 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2001-07-11 02:24:28 +0000 |
commit | 5a98f880fa7bdb340bd788f1a14bb1b9a1327a0d (patch) | |
tree | e33a34c7af5641f56c318c0caee8bf95422ee340 /sys/alpha/isa | |
parent | a896ae072f0bc9e5b8eda9413da3d760bb3d8395 (diff) | |
download | FreeBSD-src-5a98f880fa7bdb340bd788f1a14bb1b9a1327a0d.zip FreeBSD-src-5a98f880fa7bdb340bd788f1a14bb1b9a1327a0d.tar.gz |
Sanity guard- return ENODEV if we don't have a good IRQ resource.
Diffstat (limited to 'sys/alpha/isa')
-rw-r--r-- | sys/alpha/isa/isa.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/alpha/isa/isa.c b/sys/alpha/isa/isa.c index 48404b8..95c7d58 100644 --- a/sys/alpha/isa/isa.c +++ b/sys/alpha/isa/isa.c @@ -338,6 +338,9 @@ isa_setup_intr(device_t dev, device_t child, return platform.isa_setup_intr(dev, child, irq, flags, intr, arg, cookiep); + if (irq == NULL) + return ENODEV; + error = rman_activate_resource(irq); if (error) return error; |