]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / Hibernate: Fix PM_POST_* notification with user-space suspend
authorTakashi Iwai <tiwai@suse.de>
Thu, 9 Dec 2010 23:16:39 +0000 (00:16 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 22:43:06 +0000 (14:43 -0800)
commit012f9fdfd2965f573171f848d1aa46531cab7062
tree134284f35650068f7356cc0c527c19969310d9ca
parent4423917fd5ce23c4f78d34ea8cee3100f7361199
PM / Hibernate: Fix PM_POST_* notification with user-space suspend

commit 1497dd1d29c6a53fcd3c80f7ac8d0e0239e7389e upstream.

The user-space hibernation sends a wrong notification after the image
restoration because of thinko for the file flag check.  RDONLY
corresponds to hibernation and WRONLY to restoration, confusingly.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/power/user.c