diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2009-03-31 16:17:03 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-02 03:57:01 -0400 |
commit | 9404c82b5ea3237f43732d8afd4d1c0dc8f0f3ed (patch) | |
tree | bbaa72bad1b4e702004f0b091be2e4d43b69a71e /drivers/net/enc28j60_hw.h | |
parent | d360009c100766c6f14ea349e8f984a3ad17e140 (diff) |
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: Henk Stegeman <henk.stegeman@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/enc28j60_hw.h')
0 files changed, 0 insertions, 0 deletions