]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit867ae8a7993b26fc742703f748663cc2ac421db7
treee4415dea75f402811c2813144b87b7938be93d32
parent432b4941928b98fbe01f515fab6a7715c9dcebf6
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