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
..
2008-11-16 01:35:56 -08:00
2008-11-03 15:23:02 -05:00
2008-10-16 16:52:05 +02:00
2008-10-16 16:52:05 +02:00
2008-11-03 16:46:58 -08:00
2008-11-14 18:18:30 -05:00
2008-11-25 21:05:51 -08:00
2008-11-21 16:33:25 -08:00
2008-11-14 14:44:08 -08:00
2008-10-30 23:35:02 -07:00
2008-10-17 02:38:35 +11:00
2008-11-30 10:03:37 -08:00
2008-11-30 10:03:37 -08:00
2008-10-22 06:22:13 -04:00
2008-12-16 15:22:41 -08:00
2008-11-01 09:49:46 -07:00