Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1204693

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

From "Brown, Aaron F" <aaron.f.brown@intel.com>
Newsgroups linux.kernel
Subject RE: [PATCH] igb: Fix a memory leak in igb_probe
Date 2015-08-11 04:20 +0200
Message-ID <pW7kt-8aE-3@gated-at.bofh.it> (permalink)
References <pU7yh-3zf-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> From: netdev-owner@vger.kernel.org [mailto:netdev-owner@vger.kernel.org]
> On Behalf Of Jia-Ju Bai
> Sent: Wednesday, August 05, 2015 7:05 AM
> To: Kirsher, Jeffrey T; Brandeburg, Jesse
> Cc: intel-wired-lan@lists.osuosl.org; netdev@vger.kernel.org; linux-
> kernel@vger.kernel.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 occur.
> This patch adds kfree to fix it.
> 
> Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com>
> ---
>  drivers/net/ethernet/intel/igb/igb_main.c |    1 +
>  1 file changed, 1 insertion(+)

Tested-by: Aaron Brown <aaron.f.brown@intel.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] igb: Fix a memory leak in igb_probe Jia-Ju Bai <baijiaju1990@163.com> - 2015-08-05 16:10 +0200
  RE: [PATCH] igb: Fix a memory leak in igb_probe "Brown, Aaron F" <aaron.f.brown@intel.com> - 2015-08-11 04:20 +0200

csiph-web