alistair23-linux/drivers/net/phy
Krzysztof Halasa e8e5752dc0 net: kernel BUG at drivers/net/phy/mdio_bus.c:165!
kernel BUG at drivers/net/phy/mdio_bus.c:165!
Unable to handle kernel NULL pointer dereference at virtual address 00000000

How?

mdiobus_alloc() sets bus->state = MDIOBUS_ALLOCATED.

mdiobus_register() sets bus->state = MDIOBUS_REGISTERED but then can
   fail (mdiobus_scan()) returning an error to the caller.

The caller aborts correctly with mdiobus_free() which does:
        if (bus->state == MDIOBUS_ALLOCATED) {
                kfree(bus);
                return;
        }

        BUG_ON(bus->state != MDIOBUS_UNREGISTERED);

Signed-off-by: Krzysztof Halasa <khc@pm.waw.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-12-17 00:24:13 -08:00
..
broadcom.c PHYLIB: Add 1000Base-X support for Broadcom bcm5482 2008-05-22 06:34:31 -04:00
cicada.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
davicom.c dm9161: add configuration for MII/RMII 2008-03-05 06:26:56 -05:00
fixed.c phylib: two dynamic mii_bus allocation fallout fixes 2008-10-09 09:45:04 -07:00
icplus.c phylib: add the ICPlus IP175C PHY driver 2007-07-08 22:16:38 -04:00
Kconfig net: OpenFirmware GPIO based MDIO bitbang driver 2008-05-30 22:18:25 -04:00
lxt.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
Makefile net: OpenFirmware GPIO based MDIO bitbang driver 2008-05-30 22:18:25 -04:00
marvell.c phy: Add support for Marvell 88E1118 PHY 2008-11-15 14:04:27 -08:00
mdio-bitbang.c phylib: move to dynamic allocation of struct mii_bus 2008-10-08 16:29:57 -07:00
mdio-ofgpio.c phylib: move to dynamic allocation of struct mii_bus 2008-10-08 16:29:57 -07:00
mdio_bus.c net: kernel BUG at drivers/net/phy/mdio_bus.c:165! 2008-12-17 00:24:13 -08:00
phy.c phylib: add mdiobus_{read,write} 2008-10-08 16:38:41 -07:00
phy_device.c phy: fix phy_id detection also for broken hardware. 2008-11-20 20:43:18 -08:00
qsemi.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
realtek.c phylib: Add Realtek 821x eth PHY support 2008-02-03 04:28:42 -08:00
smsc.c Add support for SMSC LAN8187 and LAN8700 PHYs 2008-04-29 01:55:59 -04:00
vitesse.c phylib: Add Vitesse VSC8221 SGMII PHY 2008-11-25 01:00:47 -08:00