Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c5b03b6 authored by Martin Schwidefsky's avatar Martin Schwidefsky
Browse files

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: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 2bc53b80
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -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,
	if (memcpy_hsa_kernel(&sa_ext->sa, sys_info.sa_base,
			      sys_info.sa_size) < 0) {
			      sys_info.sa_size) < 0) {
		TRACE("could not copy from HSA\n");
		TRACE("could not copy from HSA\n");
		kfree(sa_ext);
		return -EIO;
		return -EIO;
	}
	}
	if (MACHINE_HAS_VX)
	if (MACHINE_HAS_VX)