Skip to content
Commit e8055139 authored by Ondrej Zary's avatar Ondrej Zary Committed by Ingo Molnar
Browse files

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: default avatarOndrej Zary <linux@rainbow-software.org>
LKML-Reference: <200908112000.15993.linux@rainbow-software.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent fbd8b181
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment