public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [pm] fix oops after saving image
@ 2003-10-01 22:37 Pavel Machek
  2003-10-02 16:40 ` Patrick Mochel
  0 siblings, 1 reply; 13+ messages in thread
From: Pavel Machek @ 2003-10-01 22:37 UTC (permalink / raw)
  To: kernel list, Patrick Mochel

Hi!

I was seeing strange oopsen after saving image. They are almost
harmless: anything that happens after writing final signature does not
matter (as long as  it does not write to disk). But that oops makes
testing hard as you have to manually powerdown the machine.

free_page() at this point is unneccessary as machine is going down,
anyway. Please apply,
								Pavel
PS: For a test, I'm running while true; do echo 4 > /proc/acpi/sleep;
sleep 30; done while making kernel. It seems to work so far.

--- tmp/linux/kernel/power/swsusp.c	2003-10-02 00:04:35.000000000 +0200
+++ linux/kernel/power/swsusp.c	2003-10-01 23:56:49.000000000 +0200
@@ -345,7 +348,7 @@
 	printk( "|\n" );
 
 	MDELAY(1000);
-	free_page((unsigned long) buffer);
+	/* Trying to free_page((unsigned long) buffer) here is bad idea, not sure why */
 	return 0;
 }
 
-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-10-06 22:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-01 22:37 [pm] fix oops after saving image Pavel Machek
2003-10-02 16:40 ` Patrick Mochel
2003-10-02 20:39   ` Pavel Machek
2003-10-03 21:38     ` Patrick Mochel
2003-10-03 22:33       ` Pavel Machek
2003-10-04  5:17         ` Stan Bubrouski
2003-10-04  8:02           ` Pavel Machek
2003-10-04  7:50             ` Nigel Cunningham
2003-10-04 16:27               ` Stan Bubrouski
2003-10-04 16:26             ` Stan Bubrouski
2003-10-04 16:39               ` Pavel Machek
2003-10-04 16:53                 ` Stan Bubrouski
2003-10-06 22:30         ` Patrick Mochel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox