From: Andreas Herrmann Date: Wed, 6 Aug 2008 08:29:37 +0000 (+0200) Subject: x86: cpu_init(): fix memory leak when using CPU hotplug X-Git-Tag: v2.6.27-rc6~23^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23952a96ae738277f3139b63d622e22984589031;p=pandora-kernel.git x86: cpu_init(): fix memory leak when using CPU hotplug Exception stacks are allocated each time a CPU is set online. But the allocated space is never freed. Thus with one CPU hotplug offline/online cycle there is a memory leak of 24K (6 pages) for a CPU. Fix is to allocate exception stacks only once -- when the CPU is set online for the first time. Signed-off-by: Andreas Herrmann Cc: akpm@linux-foundation.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed