Skip to content

Commit ad31a8c

Browse files
committed
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: b61b159 ("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>
1 parent 85012e7 commit ad31a8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/s390/kernel/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ static int __init stack_realloc(void)
354354
if (!new)
355355
panic("Couldn't allocate machine check stack");
356356
WRITE_ONCE(S390_lowcore.mcck_stack, new + STACK_INIT_OFFSET);
357-
memblock_free(old, THREAD_SIZE);
357+
memblock_free_late(old, THREAD_SIZE);
358358
return 0;
359359
}
360360
early_initcall(stack_realloc);

0 commit comments

Comments
 (0)