From: Dan Carpenter <hidden> Date: 2021-05-15 10:01:52
We spotted a bug recently during a review where a driver was
unregistering a bus that wasn't registered, which would trigger this
BUG_ON(). Let's handle that situation more gracefully, and just print
a warning and return.
Reported-by: Russell King <linux@armlinux.org.uk>
Signed-off-by: Dan Carpenter <redacted>
---
drivers/net/phy/mdio_bus.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From: "Russell King (Oracle)" <linux@armlinux.org.uk> Date: 2021-05-15 10:15:41
On Sat, May 15, 2021 at 01:01:11PM +0300, Dan Carpenter wrote:
We spotted a bug recently during a review where a driver was
unregistering a bus that wasn't registered, which would trigger this
BUG_ON(). Let's handle that situation more gracefully, and just print
a warning and return.
Reported-by: Russell King <linux@armlinux.org.uk>
This probably ought to be updated to:
Reported-by: Russell King (Oracle) <redacted>
now please.
From: Andrew Lunn <andrew@lunn.ch> Date: 2021-05-15 14:07:10
On Sat, May 15, 2021 at 01:01:11PM +0300, Dan Carpenter wrote:
We spotted a bug recently during a review where a driver was
unregistering a bus that wasn't registered, which would trigger this
BUG_ON(). Let's handle that situation more gracefully, and just print
a warning and return.
Reported-by: Russell King <linux@armlinux.org.uk>
Signed-off-by: Dan Carpenter <redacted>
From: Dan Carpenter <hidden> Date: 2021-05-17 09:04:57
We spotted a bug recently during a review where a driver was
unregistering a bus that wasn't registered, which would trigger this
BUG_ON(). Let's handle that situation more gracefully, and just print
a warning and return.
Reported-by: Russell King (Oracle) <redacted>
Signed-off-by: Dan Carpenter <redacted>
Reviewed-by: Russell King (Oracle) <redacted>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
---
v2: Update the Reported-by tag.
drivers/net/phy/mdio_bus.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Mon, 17 May 2021 12:04:13 +0300 you wrote:
We spotted a bug recently during a review where a driver was
unregistering a bus that wasn't registered, which would trigger this
BUG_ON(). Let's handle that situation more gracefully, and just print
a warning and return.
Reported-by: Russell King (Oracle) <redacted>
Signed-off-by: Dan Carpenter <redacted>
Reviewed-by: Russell King (Oracle) <redacted>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
[...]