PM / Hibernate: Fix PM_POST_* notification with user-space suspend
commitc85b1ca3a94d0a1de278faf545daa765f671b59b
authorTakashi Iwai <tiwai@suse.de>
Thu, 9 Dec 2010 23:16:39 +0000 (10 00:16 +0100)
committerAK <andi@firstfloor.org>
Sun, 6 Feb 2011 19:03:30 +0000 (6 11:03 -0800)
treed830c8017e6a299a80ea3d66a4eb253caa47c520
parent83ec6d3cccb0cd67613880b32c85fec88233d681
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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
kernel/power/user.c