summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/acpi/boot.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-23 20:04:33 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-23 20:04:33 -0700
commit329f0a8a35a664fb33f58f10538f5440ee19c54e (patch)
tree270e7764e6fe54c982626bd2af294cedf4afbc5f /arch/x86/kernel/acpi/boot.c
parenta5fa2660d787d8416f426cd622778a5d8851ac36 (diff)
parent520eccdfe187591a51ea9ab4c1a024ae4d0f68d9 (diff)
downloadlinux-329f0a8a35a664fb33f58f10538f5440ee19c54e.tar.gz
linux-329f0a8a35a664fb33f58f10538f5440ee19c54e.tar.bz2
linux-329f0a8a35a664fb33f58f10538f5440ee19c54e.zip
Merge 4.13-rc2 into tty-next
We want the tty/serial fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/kernel/acpi/boot.c')
-rw-r--r--arch/x86/kernel/acpi/boot.c8
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);