Skip to contentSkip to conversation

x86: reget cfg_new in case reuse/move irq_desc

PATCH New Yinghai Lu 1 participant 1 message Sep 27, 2009 x86

lore
Share & tools
lore

Yinghai Lu

author
#0 lore raw

PATCH 1/1 x86: reget cfg_new in case reuse/move irq_desc

when irq_desc is moved, we need to make sure to use right cfg_new

---
 arch/x86/kernel/apic/io_apic.c |    1 +
 1 file changed, 1 insertion(+)
arch/x86/kernel/apic/io_apic.c +1 -0
Index: linux-2.6/arch/x86/kernel/apic/io_apic.c
===================================================================
@@ -3169,6 +3169,7 @@ unsigned int create_irq_nr(unsigned int
 			continue;
 
 		desc_new = move_irq_desc(desc_new, node);
+		cfg_new = desc_new->chip_data;
 
 		if (__assign_irq_vector(new, cfg_new, apic->target_cpus()) == 0)
 			irq = new;