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

s390/sclp: Add check for get_zeroed_page()



Add check for the return value of get_zeroed_page() in
sclp_console_init() to prevent null pointer dereference.
Furthermore, to solve the memory leak caused by the loop
allocation, add a free helper to do the free job.

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/20250218025216.2421548-1-haoxiang_li2024@163.com


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