x86/ioapic: Return suitable error code in mp_map_gsi_to_irq()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 19 Jan 2017 19:24:22 +0000 (21:24 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 20 Jan 2017 09:07:41 +0000 (10:07 +0100)
commit358e96deaed3330a59d9dd6a7e419f4da08d6497
treea59d642ea2dc4f155e0619a35372ebdc57c6305f
parent81a71176740624ef3b1bff50c51e7b4aa187353d
x86/ioapic: Return suitable error code in mp_map_gsi_to_irq()

mp_map_gsi_to_irq() in some cases might return legacy -1, which would be
wrongly interpreted as -EPERM.

Correct those cases to return proper error code.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: http://lkml.kernel.org/r/20170119192425.189899-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/apic/io_apic.c