From: Heiko Carstens Date: Mon, 5 Apr 2021 20:32:27 +0000 (+0200) Subject: s390/setup: use memblock_free_late() to free old stack X-Git-Tag: v5.15~1387^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad31a8c05196a3dc5283b193e9c74a72022d3c65;p=platform%2Fkernel%2Flinux-starfive.git 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 Acked-by: Sven Schnelle Signed-off-by: Heiko Carstens --- diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 60da976..72134f9 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);