• Andrew Morton's avatar
    [PATCH] fix oops on resume from apm bios initiated suspend · b8b98570
    Andrew Morton authored
    From: Milton Miller <miltonm@bga.com>
    
    mm is NULL for kernel threads without their own context.  active_mm is
    maintained the one we lazly switch from.
    
    Without this patch, apm bios initiated suspend events (eg panel close)
    cause an oops on resume in the LDT restore, killing kapmd, which causes
    further events to not be polled.
    b8b98570
suspend.c 3.67 KB