igb: do not use phy ops in ethtool test cleanup for non-copper parts
authorAlexander Duyck <alexander.h.duyck@intel.com>
Sat, 22 Nov 2008 05:30:24 +0000 (21:30 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Nov 2008 05:30:24 +0000 (21:30 -0800)
commitf5f4cf08467db10de061a1b90037a56a360d3554
treef590f5a39dca1a57012f5eb62302ca56b7d3e27a
parent21fc578dcaa66dd30bad3c2f2cd7578e2865e8f2
igb: do not use phy ops in ethtool test cleanup for non-copper parts

Currently the igb driver is experiencing a panic due to a null function
pointer being used during the cleanup of the ethtool looback test on
fiber/serdes parts.  This patch prevents that and adds a check prior to
calling any phy function.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/igb.h
drivers/net/igb/igb_ethtool.c
drivers/net/igb/igb_main.c