Commit 7032d83e authored by Pavel Machek's avatar Pavel Machek Committed by Linus Torvalds

[PATCH] swsusp bugfixes: do not oops when not enough memory during resume

This prevents oops when not enough memory is available during resume.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 934aec1e
......@@ -985,6 +985,8 @@ static int __init swsusp_pagedir_relocate(void)
c = *c;
free_pages((unsigned long)f, pagedir_order);
}
if (ret)
return ret;
printk("|\n");
return check_pagedir();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment