commit | 42ad1a03b4caf4d95b980bce17c46242e6728ddc | [log] [tgz] |
---|---|---|
author | Jia-Ju Bai <baijiaju1990@163.com> | Wed Aug 05 22:05:16 2015 +0800 |
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | Tue Aug 18 14:06:06 2015 -0700 |
tree | dbd0a6114121108580e9e6cafea921adaab256a1 | |
parent | 0845d45e900cad5f7f855a7a6a21c33477800b1f [diff] |
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>