Skip to contentSkip to conversation

swsusp: Fix resume error path in platform mode

PATCH New Rafael J. Wysocki 1 participant 1 message Mar 10, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 swsusp: Fix resume error path in platform mode

From: Rafael J. Wysocki <[email protected]>

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.

---
 kernel/power/disk.c |    1 +
 1 file changed, 1 insertion(+)
kernel/power/disk.c +1 -0
Index: linux-2.6.21-rc3/kernel/power/disk.c
===================================================================
@@ -260,6 +260,7 @@ static int software_resume(void)
 	error = swsusp_read();
 	if (error) {
 		swsusp_free();
+		platform_finish();
 		goto Thaw;
 	}