]> 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)
commita269dce4c4da82f269288e9b1da149a84f37ccbf
treee4415dea75f402811c2813144b87b7938be93d32
parent184ed233e6efb9bebc16282f761ade93d86d18a6
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