Skip to content

Commit

Permalink
s390/zcore: remove invalid kfree in init_cpu_info
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Martin Schwidefsky committed Nov 27, 2015
1 parent 2bc53b8 commit 4c5b03b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/s390/char/zcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4c5b03b

Please sign in to comment.