From: Ondrej Zary Date: Tue, 11 Aug 2009 18:00:11 +0000 (+0200) Subject: x86: Fix oops in identify_cpu() on CPUs without CPUID X-Git-Tag: v2.6.31-rc6~4^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8055139d996e85722984968472868d6dccb1490;p=pandora-kernel.git x86: Fix oops in identify_cpu() on CPUs without CPUID Kernel is broken for x86 CPUs without CPUID since 2.6.28. It crashes with NULL pointer dereference in identify_cpu(): 766 generic_identify(c); 767 768--> if (this_cpu->c_identify) 769 this_cpu->c_identify(c); this_cpu is NULL. This is because it's only initialized in get_cpu_vendor() function, which is not called if the CPU has no CPUID instruction. Signed-off-by: Ondrej Zary LKML-Reference: <200908112000.15993.linux@rainbow-software.org> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed