diff options
author | Andi Kleen | 2006-06-26 13:59:17 +0200 |
---|---|---|
committer | Linus Torvalds | 2006-06-26 19:48:21 +0200 |
commit | 75bd665cc9f4d0f67164d9145e446ae554d4ed3f (patch) | |
tree | ddfd134ef54138eea8e341039466c7e470203c71 /include/asm-mips/xxs1500.h | |
parent | [PATCH] x86_64: x86_64 setup.c - printing cmp related boottime information (diff) | |
download | kernel-qcow2-linux-75bd665cc9f4d0f67164d9145e446ae554d4ed3f.tar.gz kernel-qcow2-linux-75bd665cc9f4d0f67164d9145e446ae554d4ed3f.tar.xz kernel-qcow2-linux-75bd665cc9f4d0f67164d9145e446ae554d4ed3f.zip |
[PATCH] x86_64: Fix fast check in safe_smp_processor_id
The APIC ID returned by hard_smp_processor_id can be beyond
NR_CPUS and then overflow the x86_cpu_to_apic[] array.
Add a check for overflow. If it happens then the slow loop below
will catch.
Bug pointed out by Doug Thompson
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-mips/xxs1500.h')
0 files changed, 0 insertions, 0 deletions