]> git.baikalelectronics.ru Git - kernel.git/commit
net: mdio: Replaced BUG_ON() with WARN()
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 17 Nov 2021 17:36:29 +0000 (09:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Nov 2021 11:45:51 +0000 (11:45 +0000)
commitd0e0627c7514c79fb4434bf6654be8793c1c4766
treee4415dea75f402811c2813144b87b7938be93d32
parent5f88e26c787157e3cee17d73f96a0889c0c59269
net: mdio: Replaced BUG_ON() with WARN()

Killing the kernel because a certain MDIO bus object is not in the
desired state at various points in the registration or unregistration
paths is excessive and is not helping in troubleshooting or fixing
issues. Replace the BUG_ON() with WARN() and print out the MDIO bus name
to facilitate debugging.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio_bus.c