Commit a7883dec authored by Ingo Molnar's avatar Ingo Molnar

x86: fix warning in arch/x86/kernel/io_apic.c

this warning:

  arch/x86/kernel/io_apic.c: In function ‘ir_set_msi_irq_affinity’:
  arch/x86/kernel/io_apic.c:3373: warning: ‘cfg’ may be used uninitialized in this function

triggers because the variable was truly uninitialized. We'd crash on
entering this code.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 9924da43
......@@ -3360,7 +3360,7 @@ static void
ir_set_msi_irq_affinity(unsigned int irq, const struct cpumask *mask)
{
struct irq_desc *desc = irq_to_desc(irq);
struct irq_cfg *cfg;
struct irq_cfg *cfg = desc->chip_data;
unsigned int dest;
struct irte irte;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment