aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/ABI/testing/sysfs-class-net-phydev
diff options
context:
space:
mode:
authorIoana Ciornei <ioana.ciornei@nxp.com>2019-05-28 20:38:09 +0300
committerDavid S. Miller <davem@davemloft.net>2019-05-29 21:48:53 -0700
commit82c76aca81187b3d28a6fb3062f6916450ce955e (patch)
tree9e3ed72f28425e9b3c3910eab392a6361975c8b6 /Documentation/ABI/testing/sysfs-class-net-phydev
parentnet: phy: Guard against the presence of a netdev (diff)
downloadlinux-dev-82c76aca81187b3d28a6fb3062f6916450ce955e.tar.xz
linux-dev-82c76aca81187b3d28a6fb3062f6916450ce955e.zip
net: phy: Check against net_device being NULL
In general, we don't want MAC drivers calling phy_attach_direct with the net_device being NULL. Add checks against this in all the functions calling it: phy_attach() and phy_connect_direct(). Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Suggested-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/ABI/testing/sysfs-class-net-phydev')
0 files changed, 0 insertions, 0 deletions