Commit 2c455fcb authored by Andy Grover's avatar Andy Grover

ACPI: Never return a value from the PCI device's Interrupt Line field if

  it might be bogus -- return 0 instead.
parent d38799aa
...@@ -346,9 +346,13 @@ acpi_pci_irq_enable ( ...@@ -346,9 +346,13 @@ acpi_pci_irq_enable (
*/ */
if (!irq) { if (!irq) {
printk(KERN_WARNING PREFIX "No IRQ known for interrupt pin %c of device %s", ('A' + pin), dev->slot_name); printk(KERN_WARNING PREFIX "No IRQ known for interrupt pin %c of device %s", ('A' + pin), dev->slot_name);
if (dev->irq) /* Interrupt Line values above 0xF are forbidden */
if (dev->irq && dev->irq >= 0xF) {
printk(" - using IRQ %d\n", dev->irq); printk(" - using IRQ %d\n", dev->irq);
return_VALUE(dev->irq); return_VALUE(dev->irq);
}
else
return_VALUE(0);
} }
dev->irq = irq; dev->irq = irq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment