瀏覽代碼

x86: Re-get cfg_new in case reuse/move irq_desc

When irq_desc is moved, we need to make sure to use the right cfg_new.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <4B07A739.3030104@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Yinghai Lu 15 年之前
父節點
當前提交
37ef2a3029
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      arch/x86/kernel/apic/io_apic.c

+ 1 - 0
arch/x86/kernel/apic/io_apic.c

@@ -3186,6 +3186,7 @@ unsigned int create_irq_nr(unsigned int irq_want, int node)
 			continue;
 			continue;
 
 
 		desc_new = move_irq_desc(desc_new, node);
 		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)
 		if (__assign_irq_vector(new, cfg_new, apic->target_cpus()) == 0)
 			irq = new;
 			irq = new;