summaryrefslogtreecommitdiffstats
path: root/sys/pci/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/pci.c')
-rw-r--r--sys/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/pci.c b/sys/pci/pci.c
index 08ad7d9..23c1109 100644
--- a/sys/pci/pci.c
+++ b/sys/pci/pci.c
@@ -1315,7 +1315,7 @@ int pci_map_int (pcici_t tag, pci_inthand_t *func, void *arg, unsigned *maskptr)
*/
irq = getirq (tag);
- if (irq >= PCI_MAX_IRQ) {
+ if ((irq == 0) || (irq >= PCI_MAX_IRQ)) {
printf ("\tillegal irq %d.\n", irq);
return (0);
};
OpenPOWER on IntegriCloud