mirror of
https://github.com/torvalds/linux.git
synced 2024-12-24 20:01:55 +00:00
e8e5752dc0
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> |
||
---|---|---|
.. | ||
broadcom.c | ||
cicada.c | ||
davicom.c | ||
fixed.c | ||
icplus.c | ||
Kconfig | ||
lxt.c | ||
Makefile | ||
marvell.c | ||
mdio_bus.c | ||
mdio-bitbang.c | ||
mdio-ofgpio.c | ||
phy_device.c | ||
phy.c | ||
qsemi.c | ||
realtek.c | ||
smsc.c | ||
vitesse.c |