Re: [PATCH] tty: ipwireless: fix memory leak in do_go_offline()

From: David Sterba

Date: Thu Mar 12 2026 - 08:01:04 EST


On Fri, Mar 06, 2026 at 11:40:58AM +0800, Qingfang Deng wrote:
> The ppp_channel is allocated and registered in do_go_online(). But when
> the channel is unregistered in do_go_offline(), the driver forgets to
> release its memory. This leads to a memory leak each time the network
> goes online and then offline.
>
> Fix this by adding a kfree call after unregistering the channel.
>
> Fixes: 099dc4fb6265 ("ipwireless: driver for PC Card 3G/UMTS modem")
> Signed-off-by: Qingfang Deng <dqfext@xxxxxxxxx>

Thanks, but the driver is going to be deleted.