mirror of https://github.com/torvalds/linux.git
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) <rmk+kernel@armlinux.org.uk> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
|---|---|---|
| .. | ||
| mscc | ||
| Kconfig | ||
| Makefile | ||
| adin.c | ||
| amd.c | ||
| aquantia.h | ||
| aquantia_hwmon.c | ||
| aquantia_main.c | ||
| at803x.c | ||
| ax88796b.c | ||
| bcm-cygnus.c | ||
| bcm-phy-lib.c | ||
| bcm-phy-lib.h | ||
| bcm7xxx.c | ||
| bcm63xx.c | ||
| bcm87xx.c | ||
| bcm54140.c | ||
| bcm84881.c | ||
| broadcom.c | ||
| cicada.c | ||
| cortina.c | ||
| davicom.c | ||
| dp83tc811.c | ||
| dp83640.c | ||
| dp83640_reg.h | ||
| dp83822.c | ||
| dp83848.c | ||
| dp83867.c | ||
| dp83869.c | ||
| et1011c.c | ||
| fixed_phy.c | ||
| icplus.c | ||
| intel-xway.c | ||
| linkmode.c | ||
| lxt.c | ||
| marvell-88x2222.c | ||
| marvell.c | ||
| marvell10g.c | ||
| mdio-boardinfo.c | ||
| mdio-boardinfo.h | ||
| mdio_bus.c | ||
| mdio_device.c | ||
| mdio_devres.c | ||
| meson-gxl.c | ||
| micrel.c | ||
| microchip.c | ||
| microchip_t1.c | ||
| mii_timestamper.c | ||
| national.c | ||
| nxp-c45-tja11xx.c | ||
| nxp-tja11xx.c | ||
| phy-c45.c | ||
| phy-core.c | ||
| phy.c | ||
| phy_device.c | ||
| phy_led_triggers.c | ||
| phylink.c | ||
| qsemi.c | ||
| realtek.c | ||
| rockchip.c | ||
| sfp-bus.c | ||
| sfp.c | ||
| sfp.h | ||
| smsc.c | ||
| spi_ks8995.c | ||
| ste10Xp.c | ||
| swphy.c | ||
| swphy.h | ||
| teranetics.c | ||
| uPD60620.c | ||
| vitesse.c | ||
| xilinx_gmii2rgmii.c | ||