• J
    timekeeping: Prevent oops when GENERIC_TIME=n · ad6759fb
    john stultz 提交于
    Aaro Koskinen reported an issue in kernel.org bugzilla #15366, where
    on non-GENERIC_TIME systems, accessing
    /sys/devices/system/clocksource/clocksource0/current_clocksource
    results in an oops.
    
    It seems the timekeeper/clocksource rework missed initializing the
    curr_clocksource value in the !GENERIC_TIME case.
    
    Thanks to Aaro for reporting and diagnosing the issue as well as
    testing the fix!
    Reported-by: NAaro Koskinen <aaro.koskinen@iki.fi>
    Signed-off-by: NJohn Stultz <johnstul@us.ibm.com>
    Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
    Cc: stable@kernel.org
    LKML-Reference: <1267475683.4216.61.camel@localhost.localdomain>
    Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
    ad6759fb
clocksource.c 23.1 KB