s390/zcore: remove invalid kfree in init_cpu_info
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 9 Oct 2015 11:36:40 +0000 (13:36 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 27 Nov 2015 08:24:11 +0000 (09:24 +0100)
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>
drivers/s390/char/zcore.c

index 823f41fc4bbd6762184737b73d55452967ca3e44..c839a1593b8fe6e33c1393c49e25d1ab6e08958a 100644 (file)
@@ -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)
This page took 0.040545 seconds and 5 git commands to generate.