diff options
Diffstat (limited to 'arch/x86/kernel/acpi/boot.c')
| -rw-r--r-- | arch/x86/kernel/acpi/boot.c | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index 6bb680671088..7491e73d9253 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c @@ -347,6 +347,14 @@ static void __init mp_override_legacy_irq(u8 bus_irq, u8 polarity, u8 trigger,  	struct mpc_intsrc mp_irq;  	/* +	 * Check bus_irq boundary. +	 */ +	if (bus_irq >= NR_IRQS_LEGACY) { +		pr_warn("Invalid bus_irq %u for legacy override\n", bus_irq); +		return; +	} + +	/*  	 * Convert 'gsi' to 'ioapic.pin'.  	 */  	ioapic = mp_find_ioapic(gsi);  | 
