aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/setup.c
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2021-04-05 22:32:27 +0200
committerHeiko Carstens <hca@linux.ibm.com>2021-04-07 14:37:28 +0200
commitad31a8c05196a3dc5283b193e9c74a72022d3c65 (patch)
tree1e37b2758daaffbb2665325363ddb95290caca65 /arch/s390/kernel/setup.c
parents390/irq: fix reading of ext_params2 field from lowcore (diff)
downloadlinux-dev-ad31a8c05196a3dc5283b193e9c74a72022d3c65.tar.xz
linux-dev-ad31a8c05196a3dc5283b193e9c74a72022d3c65.zip
s390/setup: use memblock_free_late() to free old stack
Use memblock_free_late() to free the old machine check stack to the buddy allocator instead of leaking it. Fixes: b61b1595124a ("s390: add stack for machine check handler") Cc: Vasily Gorbik <gor@linux.ibm.com> Acked-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel/setup.c')
-rw-r--r--arch/s390/kernel/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c
index 60da976eee6f..72134f9f6ff5 100644
--- a/arch/s390/kernel/setup.c
+++ b/arch/s390/kernel/setup.c
@@ -354,7 +354,7 @@ static int __init stack_realloc(void)
if (!new)
panic("Couldn't allocate machine check stack");
WRITE_ONCE(S390_lowcore.mcck_stack, new + STACK_INIT_OFFSET);
- memblock_free(old, THREAD_SIZE);
+ memblock_free_late(old, THREAD_SIZE);
return 0;
}
early_initcall(stack_realloc);