[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250828104612.6b47301b@kmaincent-XPS-13-7390>
Date: Thu, 28 Aug 2025 10:46:12 +0200
From: Kory Maincent <kory.maincent@...tlin.com>
To: Jakub Kicinski <kuba@...nel.org>
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
Le Mon, 25 Aug 2025 15:10:01 -0700,
Jakub Kicinski <kuba@...nel.org> a écrit :
> 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;
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
Powered by blists - more mailing lists