From: Andi Kleen Date: Mon, 26 Jun 2006 11:59:17 +0000 (+0200) Subject: [PATCH] x86_64: Fix fast check in safe_smp_processor_id X-Git-Tag: v2.6.18-rc1~612^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75bd665cc9f4d0f67164d9145e446ae554d4ed3f;p=pandora-kernel.git [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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed