ixgbe: Check return value on eeprom reads
authorMark Rustad <mark.d.rustad@intel.com>
Fri, 24 May 2013 07:31:09 +0000 (07:31 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 29 Aug 2013 09:45:38 +0000 (02:45 -0700)
commitbe0c27b4edb9ee58c4e72ee7e460a0bed7ecef79
treebdbf8b34317dec4bc3245bc31574631d10ba1dc5
parentf4f1040ae63c7c40ef24c1892d32ceae46d9ea05
ixgbe: Check return value on eeprom reads

This patch fixes the possible use of uninitialized memory by checking the
return value on eeprom reads. These issues were identified by static
analysis. In many cases error messages will be produced so that corrupted
eeprom issues will be more visible.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c