linux/drivers/net/ethernet/intel/igb
Jia-Ju Bai 42ad1a03b4 igb: Fix a memory leak in igb_probe
In error handling code of igb_probe, the memory adapter->shadow_vfta
allocated by kcalloc in igb_sw_init is not freed. So when register_netdev
or igb_init_i2c is failed, a memory leak will occur.
This patch adds kfree to fix it.

Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2015-08-18 14:06:06 -07:00
..
e1000_82575.c igb: add support for 1512 PHY 2015-08-18 14:06:04 -07:00
e1000_82575.h igb: add flags to set eee advertisement mode 2014-09-06 05:00:39 -07:00
e1000_defines.h igb: add support for 1512 PHY 2015-08-18 14:06:04 -07:00
e1000_hw.h igb: remove blocking phy read from inside spinlock 2014-10-02 02:30:39 -07:00
e1000_i210.c
e1000_i210.h
e1000_mac.c
e1000_mac.h
e1000_mbx.c
e1000_mbx.h
e1000_nvm.c
e1000_nvm.h
e1000_phy.c igb: add support for 1512 PHY 2015-08-18 14:06:04 -07:00
e1000_phy.h igb: add support for 1512 PHY 2015-08-18 14:06:04 -07:00
e1000_regs.h igb: implement high frequency periodic output signals 2015-08-18 14:06:04 -07:00
igb.h igb: Fix oops caused by missing queue pairing 2015-08-18 14:06:03 -07:00
igb_ethtool.c igb: Fix oops caused by missing queue pairing 2015-08-18 14:06:03 -07:00
igb_hwmon.c
igb_main.c igb: Fix a memory leak in igb_probe 2015-08-18 14:06:06 -07:00
igb_ptp.c igb: implement high frequency periodic output signals 2015-08-18 14:06:04 -07:00
Makefile