summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-09-24 20:36:08 +0100
committerDavid S. Miller <davem@davemloft.net>2015-09-24 23:04:52 -0700
commit7322967bc1bd97ac9c49ecea19e5a1f681ca27ee (patch)
tree8dbce2e4e1eb98757ef30b537977d447999b1582 /drivers/net/ethernet
parent3e3aaf649416988ca8be4ad2c52dc24d8be7b46e (diff)
downloadlinux-7322967bc1bd97ac9c49ecea19e5a1f681ca27ee.tar.bz2
phy: add proper phy struct device refcounting
Take a refcount on the phy struct device when the phy device is attached to a network device, and drop it after it's detached. This ensures that a refcount is held on the phy device while the device is being used by a network device, thereby preventing the phy_device from being unexpectedly kfree()'d by phy_device_release(). Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
0 files changed, 0 insertions, 0 deletions