projects/linux·commit 886c5952

[PATCH] swsusp: Fix resume error path in platform mode

886c5952 · Rafael J. Wysocki <[email protected]> · 2007-03-16 13:38:06 -08:00

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 <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
886c5952950ffed0e8ca3eb9efdc2728bfc144d3
Parents
765e3d8a

Changes

1 files changed · +1 −0

FileStatusAddDelContent
kernel/power/disk.cmodified+1−0View file

kernel/power/disk.c

View file
diff --git a/kernel/power/disk.c b/kernel/power/disk.c
index 406b20a..a200c5f 100644
--- a/kernel/power/disk.c
+++ b/kernel/power/disk.c
@@ -251,6 +251,7 @@ static int software_resume(void)
error = swsusp_read();
if (error) {
swsusp_free();
+ platform_finish();
goto Thaw;
}