[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z/ikGxzPOysJZvUh@mev-dev.igk.intel.com>
Date: Fri, 11 Apr 2025 07:09:47 +0200
From: Michal Swiatkowski <michal.swiatkowski@...ux.intel.com>
To: Tony Nguyen <anthony.l.nguyen@...el.com>
Cc: Simon Horman <horms@...nel.org>,
Michal Swiatkowski <michal.swiatkowski@...ux.intel.com>,
intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org,
Pavan Kumar Linga <pavan.kumar.linga@...el.com>,
Aleksandr Loktionov <aleksandr.loktionov@...el.com>
Subject: Re: [Intel-wired-lan] [PATCH iwl-net v1] idpf: fix potential memory
leak on kcalloc() failure
On Thu, Apr 10, 2025 at 03:04:16PM -0700, Tony Nguyen wrote:
> On 4/7/2025 3:43 AM, Simon Horman wrote:
> > On Fri, Apr 04, 2025 at 12:54:21PM +0200, Michal Swiatkowski wrote:
> > > In case of failing on rss_data->rss_key allocation the function is
> > > freeing vport without freeing earlier allocated q_vector_idxs. Fix it.
> > >
> > > Move from freeing in error branch to goto scheme.
> > >
> > > Fixes: 95af467d9a4e ("idpf: configure resources for RX queues")
> >
> > Hi Michal,
> >
> > WRT leaking q_vector_indxs, that allocation is not present at
> > the commit cited above, so I think the correct Fixes tag for
> > that problem is the following, where that allocation was added:
> >
> > Fixes: d4d558718266 ("idpf: initialize interrupts and enable vport")
>
> Patch applied. I do agree with Simon's assessment so plan to use this fixes.
>
Thanks Tony, I also agree.
> Thanks,
> Tony
>
Powered by blists - more mailing lists