swsusp: Fix resume error path in platform mode
Subsystems (2)
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.
Signed-off-by Rafael J. Wysocki <[email protected]>
Acked-by Pavel Machek <[email protected]>
--- kernel/power/disk.c | 1 + 1 file changed, 1 insertion(+)
kernel/power/disk.c +1 -0
@@ -260,6 +260,7 @@ static int software_resume(void) error =swsusp_read ();if (error) {swsusp_free (); +platform_finish (); goto Thaw; }