On Saturday, 17 of November 2007, Rafael J. Wysocki wrote:
Actually, not even that one. You're right anyway.
Below is a patch that IMO should fix the issue with apm_ioctl().
From: Rafael J. Wysocki <email@example.com>
The code in apm_ioctl() allows user space tasks waiting for a suspend to
complete to be woken up prematurely as a result of the thawing of tasks carried
out by the freezer. Fix it.
Signed-off-by: Rafael J. Wysocki <firstname.lastname@example.org>
drivers/char/apm-emulation.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -364,7 +364,7 @@ apm_ioctl(struct inode * inode, struct f
flags = current->flags;
as->suspend_state == SUSPEND_DONE);