Re: [PATCH] s390/tty: Fix a potential memory leak bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 18, 2025 at 11:41:04AM +0800, Haoxiang Li wrote:
> 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().
> 
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Haoxiang Li <haoxiang_li2024@xxxxxxx>
> ---
>  drivers/s390/char/sclp_tty.c | 12 ++++++++++++
>  1 file changed, 12 insertions(+)

Same here: no fixes and Cc stable.

Acked-by: Heiko Carstens <hca@xxxxxxxxxxxxx>




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux