linux/drivers/net/phy
Lennert Buytenhek 3e44017b58 phylib: fix premature freeing of struct mii_bus
Commit 46abc02175 ("phylib: give mdio
buses a device tree presence") added a call to device_unregister() in
a situation where the caller did not intend for the device to be
freed yet, but apart from just unregistering the device from the
system, device_unregister() does an additional put_device() that is
intended to free it.

The right function to use in this situation is device_del(), which
unregisters the device from the system like device_unregister() does,
but without dropping the reference count an additional time.

Bug report from Bryan Wu <cooloney@kernel.org>.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Tested-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2008-11-14 18:19:40 -05: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 net/phy: Fix 88e1111 copper/fiber selection in RGMII mode 2008-07-22 17:59:12 -04: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 phylib: fix premature freeing of struct mii_bus 2008-11-14 18:19:40 -05:00
phy.c phylib: add mdiobus_{read,write} 2008-10-08 16:38:41 -07:00
phy_device.c NET: convert the phy_device file to use bus_find_device_by_name 2008-10-16 09:24:52 -07: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 Fix error checking in Vitesse IRQ config 2007-07-24 16:28:41 -04:00