Commit ad9bb8f0 authored by Haoxiang Li's avatar Haoxiang Li Committed by Vasily Gorbik
Browse files

s390/tty: Fix a potential memory leak bug



The check for get_zeroed_page() leads to a direct return
and overlooked the memory leak caused by loop allocation.
Add a free helper to free spaces allocated by get_zeroed_page().

Signed-off-by: default avatarHaoxiang Li <haoxiang_li2024@163.com>
Acked-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Link: https://lore.kernel.org/r/20250218034104.2436469-1-haoxiang_li2024@163.com


Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent 3db42c75
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment