aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>1997-01-23 22:58:03 +0000
committerStefan Eßer <se@FreeBSD.org>1997-01-23 22:58:03 +0000
commita67fa10338ca70d5645855c20de08f12fd200971 (patch)
treeda86d931f86e66c44a481528581fbb25fadd7120
parent0d3f983ad2c2a2713dcd12030883d4859e9e1bb0 (diff)
Notes
-rw-r--r--sys/dev/pci/pci.c2
-rw-r--r--sys/pci/pci.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 08ad7d97f1e8..23c110909df6 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/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);
};
diff --git a/sys/pci/pci.c b/sys/pci/pci.c
index 08ad7d97f1e8..23c110909df6 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);
};