[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240223170607.0d2aa8b1@device-28.home>
Date: Fri, 23 Feb 2024 17:06:07 +0100
From: Maxime Chevallier <maxime.chevallier@...tlin.com>
To: Andrew Lunn <andrew@...n.ch>, Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>, davem@...emloft.net, Eric Dumazet
<edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni
<pabeni@...hat.com>, Johan Hovold <johan@...nel.org>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net] net: phy: phy_device: free the phy_device on the
phy_device_create error path
On Fri, 23 Feb 2024 17:01:54 +0100
Maxime Chevallier <maxime.chevallier@...tlin.com> wrote:
> When error'ing out from phy_device_create(), the previously kzalloc'd "dev"
> pointer gets overwritten with an error pointer, without freeing it
> beforehand, thus leaking the allocated phy_device. Add the missing kfree
> back.
Disregard , I immediatly realised that this was freed in
phy_device_release in our case. Sorry about the noise.
Maxime
Powered by blists - more mailing lists