igb: do not allow phy sw reset code to make calls to null pointers
authorAlexander Duyck <alexander.h.duyck@intel.com>
Mon, 14 Sep 2009 08:23:13 +0000 (08:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Sep 2009 00:03:54 +0000 (17:03 -0700)
In the case of fiber and serdes adapters we were seeing issues with ethtool
-t causing kernel panics due to null function pointers.  To prevent this we
need to exit out of the phy reset code in the event that we do not have a
valid phy.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found