summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2015-10-09 13:36:40 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2015-11-27 09:24:11 +0100
commit4c5b03b60762bbe6b129b648e845f7faa5933f61 (patch)
treeec7ee88a4e483de70988a2c7204e47058ebaddc3 /drivers
parent2bc53b8046ce9a1543204b6c6da1ab95e4caac76 (diff)
downloadlinux-4c5b03b60762bbe6b129b648e845f7faa5933f61.tar.bz2
s390/zcore: remove invalid kfree in init_cpu_info
The extended save area for the boot CPU has been allocated by smp_save_dump_cpus() with memblock_alloc() and may not be freed with kfree(). Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/s390/char/zcore.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/s390/char/zcore.c b/drivers/s390/char/zcore.c
index 823f41fc4bbd..c839a1593b8f 100644
--- a/drivers/s390/char/zcore.c
+++ b/drivers/s390/char/zcore.c
@@ -160,7 +160,6 @@ static int __init init_cpu_info(enum arch_id arch)
if (memcpy_hsa_kernel(&sa_ext->sa, sys_info.sa_base,
sys_info.sa_size) < 0) {
TRACE("could not copy from HSA\n");
- kfree(sa_ext);
return -EIO;
}
if (MACHINE_HAS_VX)