From: Andy Gospodarek Date: Thu, 17 Feb 2011 09:13:13 +0000 (-0800) Subject: ixgbe: fix panic due to uninitialised pointer X-Git-Tag: v2.6.38-rc6~20^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c7e604babd15db9dca3b07de167a0f93fe23bf4;p=pandora-kernel.git 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 Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed