From: Jia-Ju Bai Date: Wed, 5 Aug 2015 14:05:16 +0000 (+0800) Subject: igb: Fix a memory leak in igb_probe X-Git-Tag: omap-for-v4.3/fixes-rc1~110^2~132^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42ad1a03b4caf4d95b980bce17c46242e6728ddc;p=pandora-kernel.git 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 Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed