]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86, ioapic: Fix non atomic allocation with interrupts disabled
authorSuresh Siddha <suresh.b.siddha@intel.com>
Tue, 17 Mar 2009 00:05:03 +0000 (17:05 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 17 Mar 2009 22:45:29 +0000 (15:45 -0700)
commit05c3dc2c4b60387769cbe73174347de4cf85f0c9
tree7e5918518c5f22f6121ff885283bef5397a0a842
parent29b61be65a33c95564fa82e7e8d60d97adb68ea8
x86, ioapic: Fix non atomic allocation with interrupts disabled

Impact: fix possible race

save_mask_IO_APIC_setup() was using non atomic memory allocation while getting
called with interrupts disabled. Fix this by splitting this into two different
function. Allocation part save_IO_APIC_setup() now happens before
disabling interrupts.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/io_apic.h
arch/x86/kernel/apic/apic.c
arch/x86/kernel/apic/io_apic.c