• Krzysztof Helt's avatar
    x86: fdiv bug detection fix · 3850427d
    Krzysztof Helt authored
    commit e0d22d03 upstream
    
    The fdiv detection code writes s32 integer into
    the boot_cpu_data.fdiv_bug.
    However, the boot_cpu_data.fdiv_bug is only char (s8)
    field so the detection overwrites already set fields for
    other bugs, e.g. the f00f bug field.
    
    Use local s32 variable to receive result.
    
    This is a partial fix to Bugzilla #9928  - fixes wrong
    information about the f00f bug (tested) and probably
    for coma bug (I have no cpu to test this).
    Signed-off-by: default avatarKrzysztof Helt <krzysztof.h1@wp.pl>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Cc: Chuck Ebbert <cebbert@redhat.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    3850427d
bugs.c 4.57 KB