igb: Add check for invalid size to igb_get_invariants_82575()
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Wed, 4 May 2011 04:29:51 +0000 (04:29 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 4 May 2011 19:09:53 +0000 (12:09 -0700)
commitf6b1bfd17d42f9dc1d799b7e0eed817ed75005ec
treec72bf2923be1ffdbc47234ce98b2d1930b50ad4d
parentec7e97e9a0265255485e217f4f2d3513949e7083
igb: Add check for invalid size to igb_get_invariants_82575()

Recent commits have changed how EEPROM size is checked and if the size
word is misconfigured, the driver will fail to load.  This patch adds a
check for invalid size word in the EEPROM and uses default size instead
for 82576 parts.

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: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/igb/e1000_82575.c