• Andrew Morton's avatar
    [PATCH] sys_nanosleep() fix · 0a20887d
    Andrew Morton authored
    The current nanosleep implementation has a signedness problem which can cause
    it to sleep for 0x7ffffffe jiffies if a clock interrupt happens at the wrong
    time.
    
    The patch fixes that up, and also fixes an wrapping-unsafe 64-bit time
    comparison.  Also uninline tstojiffie(), which has three call sites.
    0a20887d
posix-timers.c 34.3 KB