swsusp bugfixes: do not oops when not enough memory during resume

From: Pavel Machek
Date: Sat Dec 11 2004 - 10:43:39 EST


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!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/