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 21:58:19 +0000 (13:58 -0800)
commit91364cfb2f9bd6ec8d0a91989024f2010d2967b1
tree17ecba73d8f006547d010278242d9d45bb3771b2
parentee9b8be2eb2f7bd2b56b0ed14c7652e5e14a2d9b
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