From: Ian Campbell Date: Mon, 29 Mar 2010 02:42:56 +0000 (-0700) Subject: x86: Do not free zero sized per cpu areas X-Git-Tag: v2.6.34-rc3~4^2 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=eed63519e3e74d515d2007ecd895338d0ba2a85c;hp=eed63519e3e74d515d2007ecd895338d0ba2a85c;p=safe%2Fjmp%2Flinux-2.6 x86: Do not free zero sized per cpu areas This avoids an infinite loop in free_early_partial(). Add a warning to free_early_partial() to catch future problems. -v5: put back start > end back into WARN_ONCE() -v6: use one line for warning, suggested by Linus -v7: more tests -v8: remove the function name as suggested by Johannes WARN_ONCE() will print out that function name. Signed-off-by: Ian Campbell Signed-off-by: Yinghai Lu Tested-by: Konrad Rzeszutek Wilk Tested-by: Joel Becker Tested-by: Stanislaw Gruszka Acked-by: Johannes Weiner Cc: Peter Zijlstra Cc: David Miller Cc: Benjamin Herrenschmidt Cc: Linus Torvalds LKML-Reference: <1269830604-26214-4-git-send-email-yinghai@kernel.org> Signed-off-by: Ingo Molnar ---