Sanity guard- return ENODEV if we don't have a good IRQ resource.

This commit is contained in:
Matt Jacob 2001-07-11 02:24:28 +00:00
parent 71cfb39eb9
commit cd7c95e0bd

View File

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