Skip to contentSkip to conversation

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

PATCH Pavel Machek 1 participant 1 message Jul 28, 2004

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

Hi!

When image is already on the disk, returning back to user is dangerous. Please apply,
Pavel

kernel/power/disk.c +4 -2
@@ -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;
 }
 
Signature · 2 lines
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!