aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/x86
diff options
context:
space:
mode:
authorWerner Pawlitschko <werner.pawlitschko@arcor.de>2015-10-27 09:08:04 +0900
committerThomas Gleixner <tglx@linutronix.de>2015-10-27 09:18:34 +0900
commitababae44108b0e94b58eef6cb5bd830bd040a47f (patch)
tree48ae676a2075db84e5c0357220d9badc33993cee /tools/testing/selftests/x86
parentx86/dma-mapping: Fix arch_dma_alloc_attrs() oops with NULL dev (diff)
downloadwireguard-linux-ababae44108b0e94b58eef6cb5bd830bd040a47f.tar.xz
wireguard-linux-ababae44108b0e94b58eef6cb5bd830bd040a47f.zip
x86/ioapic: Prevent NULL pointer dereference in setup_ioapic_dest()
Commit 4857c91f0d19 changed the way how irq affinity is setup in setup_ioapic_dest() from using the core helper function to unconditionally calling the irq_set_affinity() callback of the underlying irq chip. That results in a NULL pointer dereference for the rare case where the underlying irq chip is lapic_chip which has no irq_set_affinity() callback. lapic_chip is occasionally used for the timer interrupt (irq 0). The fix is simple: Check the availability of the callback instead of calling it unconditionally. Fixes: 4857c91f0d19 "x86/ioapic: Force affinity setting in setup_ioapic_dest()" Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/testing/selftests/x86')
0 files changed, 0 insertions, 0 deletions