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)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 16 Dec 2010 16:08:43 +0000 (17:08 +0100)
commit1497dd1d29c6a53fcd3c80f7ac8d0e0239e7389e
tree5c5fa252c06826d2bcfd3121698c79eeba613d8a
parentb0c3844d8af6b9f3f18f31e1b0502fbefa2166be
PM / Hibernate: Fix PM_POST_* notification with user-space suspend

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>
Cc: stable@kernel.org
kernel/power/user.c