[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250828151218.1c187938@kernel.org>
Date: Thu, 28 Aug 2025 15:12:18 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Kory Maincent <kory.maincent@...tlin.com>
Cc: Oleksij Rempel <o.rempel@...gutronix.de>, Andrew Lunn
<andrew+netdev@...n.ch>, "David S. Miller" <davem@...emloft.net>, Eric
Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>,
kernel@...gutronix.de, Dent Project <dentproject@...uxfoundation.org>,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Maxime Chevallier
<maxime.chevallier@...tlin.com>
Subject: Re: [PATCH net-next 1/2] net: pse-pd: pd692x0: Separate
configuration parsing from hardware setup
On Thu, 28 Aug 2025 10:46:12 +0200 Kory Maincent wrote:
> > On Fri, 22 Aug 2025 17:37:01 +0200 Kory Maincent wrote:
> > > manager = kcalloc(PD692X0_MAX_MANAGERS, sizeof(*manager),
> > > GFP_KERNEL); if (!manager)
> > > return -ENOMEM;
> > >
> > > + port_matrix = devm_kcalloc(&priv->client->dev, PD692X0_MAX_PIS,
> > > + sizeof(*port_matrix), GFP_KERNEL);
> > > + if (!port_matrix)
> > > + return -ENOMEM;
> >
> > Leaking manager..
>
> I don't think so, as manager is declared like the following it should not.
> struct pd692x0_manager *manager __free(kfree) = NULL;
Please consult documentation on the user of __free() within networking.
Powered by blists - more mailing lists