[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <68d139bdc5c2cc267864b2136efb591948f61c91.camel@redhat.com>
Date: Thu, 20 Apr 2023 10:40:09 +0200
From: Paolo Abeni <pabeni@...hat.com>
To: Gencen Gan <gangecen@...t.edu.cn>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>
Cc: hust-os-kernel-patches@...glegroups.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] net: amd: Fix link leak when verifying config failed
Hi,
On Wed, 2023-04-19 at 14:58 +0800, Gencen Gan wrote:
> From: Gan Gecen <gangecen@...t.edu.cn>
>
> After failing to verify configuration, it returns directly without
> releasing link, which may cause memory leak.
>
> Signed-off-by: Gan Gecen <gangecen@...t.edu.cn>
Please include a suitable Fixes tag and specify the target tree in the
subj - see the documentation for the details.
More importantly, skimming over the relevant code I think that at least
a netdev is still leaked in the relevant error path.
Generally speaking the whole code of this driver is quite "suboptimal"
and looks unmainatained since at least ~15y, just receiving tree-wide
related changes.
I'm wondering if we could simply remove the whole driver?
Thanks
Paolo
Powered by blists - more mailing lists