igb: Fix for failure to init on some 82576 devices.
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Tue, 31 Jul 2012 01:01:23 +0000 (01:01 +0000)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Sat, 4 Aug 2012 09:43:47 +0000 (02:43 -0700)
commit925b11f706642732ce2ae53b0f0d3fd54adc5075
tree606bc9c9922e25fc805f35e5a73112f7e64e5981
parentff6e1225957cce9e93b8d84dc240e5a44094d0ec
igb: Fix for failure to init on some 82576 devices.

Move nvm invalid size check to before size assigned by mac_type for
82575 and later parts in get_invariants function.  This fixes a problem
found on some 82576 devices where the part will not initialize because
the nvm_read function pointer ends up getting assigned to the incorrect
function.

Reported By: Stefan Assmann <sassmann@redhat.com>
Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/net/ethernet/intel/igb/e1000_82575.c