mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* swsusp bugfixes: do not oops when not enough memory during resume
@ 2004-12-11 15:40 Pavel Machek
  0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2004-12-11 15:40 UTC (permalink / raw)
  To: Andrew Morton, kernel list

Hi!

This prevents oops when not enough memory is available during
resume. Please apply,
							Pavel

--- clean/kernel/power/swsusp.c	28 Oct 2004 15:21:34 -0000	1.29
+++ linux/kernel/power/swsusp.c	10 Dec 2004 21:35:59 -0000
@@ -985,6 +969,8 @@
 		c = *c;
 		free_pages((unsigned long)f, pagedir_order);
 	}
+	if (ret)
+		return ret;
 	printk("|\n");
 	return check_pagedir();
 }

-- 
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-12-11 15:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-11 15:40 swsusp bugfixes: do not oops when not enough memory during resume 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®