ixgbe: fix panic due to uninitialised pointer
authorAndy Gospodarek <andy@greyhouse.net>
Thu, 17 Feb 2011 09:13:13 +0000 (01:13 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 17 Feb 2011 09:13:13 +0000 (01:13 -0800)
commit4c7e604babd15db9dca3b07de167a0f93fe23bf4
tree7bd44f17d5760d938bdd6802c8c3be64f9264749
parent713b3c9e4c1a6da6b45da6474ed554ed0a48de69
ixgbe: fix panic due to uninitialised pointer

Systems containing an 82599EB and running a backported driver from
upstream were panicing on boot.  It turns out hw->mac.ops.setup_sfp is
only set for 82599, so one should check to be sure that pointer is set
before continuing in ixgbe_sfp_config_module_task.  I verified by
inspection that the upstream driver has the same issue and also added a
check before the call in ixgbe_sfp_link_config.

Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ixgbe/ixgbe_main.c