Skip to content

Commit

Permalink
[PATCH] swsusp: Fix resume error path in platform mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Mar 17, 2007
1 parent 765e3d8 commit 886c595
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/power/disk.c
Original file line number Diff line number Diff line change
@@ -251,6 +251,7 @@ static int software_resume(void)
error = swsusp_read();
if (error) {
swsusp_free();
platform_finish();
goto Thaw;
}

0 comments on commit 886c595

Please sign in to comment.