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

From: Vasily Gorbik
Date: Fri Feb 21 2025 - 17:54:47 EST


On Fri, Feb 21, 2025 at 04:13:48PM +0100, Heiko Carstens wrote:
> 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>

Applied, thank you!