* -mm swsusp: make sure we do not return to userspace where image is on disk
@ 2004-07-28 22:25 Pavel Machek
0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2004-07-28 22:25 UTC (permalink / raw)
To: Patrick Mochel, Andrew Morton, kernel list
Hi!
When image is already on the disk, returning back to user is
dangerous. Please apply,
Pavel
--- clean-mm/kernel/power/disk.c 2004-07-28 23:39:49.000000000 +0200
+++ linux-mm/kernel/power/disk.c 2004-07-28 23:33:46.000000000 +0200
@@ -63,8 +63,10 @@
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;
}
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-07-28 22:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-28 22:25 -mm swsusp: make sure we do not return to userspace where image is on disk Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®