Thread (44 messages) 44 messages, 3 authors, 2021-10-06

Re: [PATCH AUTOSEL 5.14 28/40] net: mdiobus: Fix memory leak in __mdiobus_register

From: Sasha Levin <sashal@kernel.org>
Date: 2021-10-06 15:12:26
Also in: lkml, netdev

On Tue, Oct 05, 2021 at 04:02:23PM +0200, Andrew Lunn wrote:
On Tue, Oct 05, 2021 at 09:50:07AM -0400, Sasha Levin wrote:
quoted
From: Yanfei Xu <redacted>

[ Upstream commit ab609f25d19858513919369ff3d9a63c02cd9e2e ]

Once device_register() failed, we should call put_device() to
decrement reference count for cleanup. Or it will cause memory
leak.
Hi Sasha

https://lkml.org/lkml/2021/10/4/1427

Please don't backport for any stable kernel.
Dropped, thanks!

-- 
Thanks,
Sasha
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help