Skip to contentSkip to conversation

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

PATCH Pavel Machek 1 participant 1 message Dec 11, 2004

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

Hi!

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

kernel/power/swsusp.c +2 -0
@@ -985,6 +969,8 @@
 		c = *c;
 		free_pages((unsigned long)f, pagedir_order);
 	}
+	if (ret)
+		return ret;
 	printk("|\n");
 	return check_pagedir();
 }
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!