Commit a0eb3a40 authored by Andrew Morton's avatar Andrew Morton Committed by Patrick Mochel

[PATCH] -mm swsusp: make sure we do not return to userspace where image is on disk

From: Pavel Machek <pavel@ucw.cz>

When image is already on the disk, returning back to user is dangerous.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
parent 58981827
......@@ -63,8 +63,10 @@ static int power_down(u32 mode)
break;
}
machine_halt();
device_power_up();
local_irq_restore(flags);
/* Valid image is on the disk, if we continue we risk serious data corruption
after resume. */
printk("Please power me down manually\n");
while(1);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment