[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b66df5f7-e309-8826-a114-b45a3f2f7c17@gmail.com>
Date: Mon, 4 Oct 2021 13:36:49 -0700
From: Florian Fainelli <f.fainelli@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org
Cc: stable@...r.kernel.org,
syzbot+398e7dc692ddbbb4cfec@...kaller.appspotmail.com,
Yanfei Xu <yanfei.xu@...driver.com>,
Andrew Lunn <andrew@...n.ch>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [PATCH 5.4 56/56] net: mdiobus: Fix memory leak in
__mdiobus_register
On 10/4/21 5:53 AM, Greg Kroah-Hartman wrote:
> From: Yanfei Xu <yanfei.xu@...driver.com>
>
> commit ab609f25d19858513919369ff3d9a63c02cd9e2e upstream.
>
> Once device_register() failed, we should call put_device() to
> decrement reference count for cleanup. Or it will cause memory
> leak.
Please also revert this change which has since been reverted upstream:
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=10eff1f5788b6ffac212c254e2f3666219576889
--
Florian
Powered by blists - more mailing lists