]> err.no Git - linux-2.6/commit
[PATCH] swsusp: Fix resume error path in platform mode
authorRafael J. Wysocki <rjw@sisk.pl>
Fri, 16 Mar 2007 21:38:06 +0000 (13:38 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 17 Mar 2007 02:25:03 +0000 (19:25 -0700)
commit886c5952950ffed0e8ca3eb9efdc2728bfc144d3
tree631e6695dbb1c4eca62ffc873fd435dc8f31f68b
parent765e3d8a71bbc1f3400667d5cfcfd7b03382d587
[PATCH] swsusp: Fix resume error path in platform mode

If swsusp is using the platform mode during the resume and the image cannot
be read, the platform mode should be switched off before software_resume()
returns.  Make it happen.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/power/disk.c