RE: [PATCH] igb: Fix a memory leak in igb_probe

2015-08-10 Thread Brown, Aaron F
el.org; Jia-Ju Bai > Subject: [PATCH] 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 o

RE: [PATCH] igb: Fix a memory leak in igb_probe

2015-08-10 Thread Brown, Aaron F
: [PATCH] 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

[PATCH] igb: Fix a memory leak in igb_probe

2015-08-05 Thread Jia-Ju Bai
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 ---

[PATCH] igb: Fix a memory leak in igb_probe

2015-08-05 Thread Jia-Ju Bai
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 baijiaju1...@163.com ---