kernel_optimize_test/drivers/pnp
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
..
isapnp PNP: centralize resource option allocations 2008-07-16 23:27:07 +02:00
pnpacpi PNPACPI: ignore _PRS interrupt numbers larger than PNP_IRQ_NR 2008-07-16 23:27:07 +02:00
pnpbios PNP: centralize resource option allocations 2008-07-16 23:27:07 +02:00
base.h PNP: centralize resource option allocations 2008-07-16 23:27:07 +02:00
card.c PNP: add pnp_alloc_card() 2008-04-29 03:22:17 -04:00
core.c PNP: replace pnp_resource_table with dynamically allocated resources 2008-07-16 23:27:05 +02:00
driver.c PNP: change pnp_add_id() to allocate its own pnp_id structures 2008-04-29 03:22:16 -04:00
interface.c PNP: increase I/O port & memory option address sizes 2008-07-16 23:27:06 +02:00
Kconfig Use menuconfig objects: PNP 2007-07-16 09:05:40 -07:00
Makefile PNP: use dev_info(), dev_err(), etc in core 2007-10-17 08:43:04 -07:00
manager.c PNP: remove redundant pnp_can_configure() check 2008-07-16 23:27:07 +02:00
quirks.c PNP: introduce pnp_irq_mask_t typedef 2008-07-16 23:27:06 +02:00
resource.c PNP: centralize resource option allocations 2008-07-16 23:27:07 +02:00
support.c PNP: in debug resource dump, make empty list obvious 2008-07-16 23:27:06 +02:00
system.c PNP: replace pnp_resource_table with dynamically allocated resources 2008-07-16 23:27:05 +02:00