Files
linux/arch/x86/kernel
Keith Busch 1bdb897039 x86/apic: Handle zero vector gracefully in clear_vector_irq()
If x86_vector_alloc_irq() fails x86_vector_free_irqs() is invoked to cleanup
the already allocated vectors. This subsequently calls clear_vector_irq().

The failed irq has no vector assigned, which triggers the BUG_ON(!vector) in
clear_vector_irq().

We cannot suppress the call to x86_vector_free_irqs() for the failed
interrupt, because the other data related to this irq must be cleaned up as
well. So calling clear_vector_irq() with vector == 0 is legitimate.

Remove the BUG_ON and return if vector is zero,

[ tglx: Massaged changelog ]

Fixes: b5dc8e6c21 "x86/irq: Use hierarchical irqdomain to manage CPU interrupt vectors"
Signed-off-by: Keith Busch <keith.busch@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2016-04-28 09:53:06 +02:00
..
2014-06-04 16:53:57 -07:00
2016-03-29 10:45:04 +02:00
2016-02-24 08:44:58 +01:00
2014-12-13 12:42:51 -08:00
2015-11-23 09:44:58 +01:00
2014-01-03 14:37:13 +00:00
2016-02-24 08:44:58 +01:00
2016-01-30 11:22:17 +01:00
2015-10-21 11:17:32 +02:00
2015-11-05 13:07:54 +01:00
2016-03-29 10:45:04 +02:00
2016-02-20 00:21:44 -05:00
2014-10-17 13:40:52 -07:00
2016-03-17 15:09:34 -07:00