Patchwork [-v6] x86: do not free zero sized per cpu areas

login
register
mail settings
Submitter Yinghai Lu
Date March 20, 2010, 6:38 a.m.
Message ID <4BA46D66.3050306@kernel.org>
Download mbox | patch
Permalink /patch/87081/
State New, archived
Headers show

Comments

Patch

Index: linux-2.6/kernel/early_res.c
===================================================================
--- linux-2.6.orig/kernel/early_res.c
+++ linux-2.6/kernel/early_res.c
@@ -333,6 +333,12 @@  void __init free_early_partial(u64 start
 	struct early_res *r;
 	int i;
 
+	if (start == end)
+		return;
+
+	if (WARN_ONCE(start > end, "free_early_partial: wrong range [%#llx, %#llx]\n", start, end))
+		return;
+
 try_next:
 	i = find_overlapped_early(start, end);
 	if (i >= max_early_res)