linux/drivers/pnp/pnpacpi
Bjorn Helgaas fe2cf598e6 PNPACPI: ignore _PRS interrupt numbers larger than PNP_IRQ_NR
ACPI Extended Interrupt Descriptors can encode 32-bit interrupt
numbers, so an interrupt number may exceed the size of the bitmap
we use to track possible IRQ settings.

To avoid corrupting memory, complain and ignore too-large interrupt
numbers.

There's similar code in pnpacpi_parse_irq_option(), but I didn't
change that because the small IRQ descriptor can only encode
IRQs 0-15, which do not exceed bitmap size.

In the future, we could handle IRQ numbers greater than PNP_IRQ_NR
by replacing the bitmap with a table or list.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2008-07-16 23:27:07 +02:00
..
Kconfig ACPI: always enable CONFIG_PNPACPI on CONFIG_ACPI kernels 2007-02-15 22:38:04 -05:00
Makefile PNP: turn on -DDEBUG when CONFIG_PNP_DEBUG is set 2008-04-29 03:22:14 -04:00
core.c ACPI PM: acpi_pm_device_sleep_state() cleanup 2008-07-16 23:27:02 +02:00
pnpacpi.h PNPACPI: move _CRS/_PRS warnings closer to the action 2008-04-29 03:22:30 -04:00
rsparser.c PNPACPI: ignore _PRS interrupt numbers larger than PNP_IRQ_NR 2008-07-16 23:27:07 +02:00