igb: Fix memory leak in igb_get_module_eeprom()
authorChristian Engelmayer <cengelma@gmx.at>
Fri, 21 Mar 2014 10:25:30 +0000 (03:25 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 21 Mar 2014 10:25:30 +0000 (03:25 -0700)
commitdb41b87db93e1ef28b6e9c4035f1cdc17e2eceb2
treee5e8044094c8594abc540af3ba859f4c80416b6e
parent22a8b2915998a5f35f659c1d419bd4bcbb1b6f41
igb: Fix memory leak in igb_get_module_eeprom()

Fix a memory leak in the igb_get_module_eeprom() error handling path.
Detected by Coverity: CID 1016508.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_ethtool.c