[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210217150621.GG1463@shell.armlinux.org.uk>
Date: Wed, 17 Feb 2021 15:06:21 +0000
From: Russell King - ARM Linux admin <linux@...linux.org.uk>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: Andrew Lunn <andrew@...n.ch>, Michael Walle <michael@...le.cc>,
Heiner Kallweit <hkallweit1@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH net-next] net: phy: icplus: Call phy_restore_page() when
phy_select_page() fails
On Wed, Feb 17, 2021 at 05:28:38PM +0300, Dan Carpenter wrote:
> On Wed, Feb 17, 2021 at 09:17:59AM +0300, Dan Carpenter wrote:
> > Smatch warns that there is a locking issue in this function:
> >
> > drivers/net/phy/icplus.c:273 ip101a_g_config_intr_pin()
> > warn: inconsistent returns '&phydev->mdio.bus->mdio_lock'.
> > Locked on : 242
> > Unlocked on: 273
> >
> > It turns out that the comments in phy_select_page() say we have to call
> > phy_restore_page() even if the call to phy_select_page() fails.
> >
> > Fixes: f9bc51e6cce2 ("net: phy: icplus: fix paged register access")
>
> Don't apply this patch. I have created a new Smatch warning for the
> phy_select_page() behavior and it catches a couple similar bugs in the
> same file. I will send a v2 that fixes those as well.
Yes, there are three instances of this in the file, all three need
fixing. Thanks.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
Powered by blists - more mailing lists