[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZLBaO2/p32h0enDT@nam-dell>
Date: Thu, 13 Jul 2023 22:10:35 +0200
From: Nam Cao <namcaov@...il.com>
To: Larry Finger <Larry.Finger@...inger.net>
Cc: gregkh@...uxfoundation.org, linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org, linux-wireless@...r.kernel.org,
syzbot+cf71097ffb6755df8251@...kaller.appspotmail.com,
stable@...r.kernel.org
Subject: Re: [PATCH] staging: 7811: Fix memory leak in _r8712_init_xmit_priv
On Thu, Jul 13, 2023 at 01:51:00PM -0500, Larry Finger wrote:
> On 7/13/23 12:35, Your Name wrote:
> > The allocation was done in a loop. Shouldn't memory from previous loop iterations
> > also be freed? And allocation by r8712_xmit_resource_alloc() should be freed too.
>
> Nam,
>
> You are right on both counts. I will prepare version 2.
>
> Larry
Perhaps you can make use of my WIP that I didn't have time to finish:
https://github.com/covanam/linux/commit/ee8a0719ec8535f932b30aa67325fc21ba998c50
(Untested and the label names are kind of dumb)
Best regards,
Nam
Powered by blists - more mailing lists