mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Make IRQ 0 invalid in pci_map_int(), since it is hardwired to the
programmable interval timer chip in PC systems.
This commit is contained in:
parent
0d3f983ad2
commit
a67fa10338
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue