[PATCH] fix oops on resume from apm bios initiated suspend
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.
Showing
Please register or sign in to comment