Skip to content
Commit 9404c82b authored by Grant Likely's avatar Grant Likely Committed by David S. Miller
Browse files

net/fec_mpc52xx: Don't dereference phy_device if it is NULL



The FEC Ethernet device isn't always attached to a phy.  Be careful
not to dereference phy_device if it is NULL.  Also eliminates an
unnecessary extra function from the ioctl path.

Reported-by: default avatarHenk Stegeman <henk.stegeman@gmail.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d360009c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment