]> git.baikalelectronics.ru Git - kernel.git/commit
x86: pda_init(): fix memory leak when using CPU hotplug
authorAndreas Herrmann <andreas.herrmann3@amd.com>
Wed, 6 Aug 2008 08:27:30 +0000 (10:27 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 6 Sep 2008 18:48:02 +0000 (20:48 +0200)
commit4868e4fc79bff8c5e15079214c37ea77eceb299e
tree7f44aad93d8f8a526f5a16f42feab080b3ecb9da
parent53914b76423259c0ffbf39955565dac4621586ff
x86: pda_init(): fix memory leak when using CPU hotplug

pda->irqstackptr is allocated whenever a CPU is set online.
But it is never freed. This results in a memory leak of 16K
for each CPU offline/online cycle.

Fix is to allocate pda->irqstackptr only once.

Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Cc: akpm@linux-foundation.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/common_64.c