Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752140AbbHRCyF (ORCPT ); Mon, 17 Aug 2015 22:54:05 -0400 Received: from mga09.intel.com ([134.134.136.24]:39396 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751594AbbHRCyD convert rfc822-to-8bit (ORCPT ); Mon, 17 Aug 2015 22:54:03 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,699,1432623600"; d="scan'208";a="786049525" From: "Brown, Aaron F" To: Jia-Ju Bai , "Kirsher, Jeffrey T" , "Brandeburg, Jesse" CC: "netdev@vger.kernel.org" , "intel-wired-lan@lists.osuosl.org" , "linux-kernel@vger.kernel.org" Subject: RE: [Intel-wired-lan] [PATCH] e100: Release skb when DMA mapping is failed in e100_xmit_prepare Thread-Topic: [Intel-wired-lan] [PATCH] e100: Release skb when DMA mapping is failed in e100_xmit_prepare Thread-Index: AQHQzZXliWehN390dkeeZIpfPnc3op4RJtdQ Date: Tue, 18 Aug 2015 02:54:01 +0000 Message-ID: <309B89C4C689E141A5FF6A0C5FB2118B81AE8727@ORSMSX101.amr.corp.intel.com> References: <1438569648-20469-1-git-send-email-baijiaju1990@163.com> In-Reply-To: <1438569648-20469-1-git-send-email-baijiaju1990@163.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.22.254.138] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1099 Lines: 25 > From: Intel-wired-lan [mailto:intel-wired-lan-bounces@lists.osuosl.org] On > Behalf Of Jia-Ju Bai > Sent: Sunday, August 02, 2015 7:41 PM > To: Kirsher, Jeffrey T; Brandeburg, Jesse > Cc: netdev@vger.kernel.org; Jia-Ju Bai; intel-wired-lan@lists.osuosl.org; > linux-kernel@vger.kernel.org > Subject: [Intel-wired-lan] [PATCH] e100: Release skb when DMA mapping is > failed in e100_xmit_prepare > > When pci_dma_mapping_error in e100_xmit_prepare is failed, the skb buffer > allocated by netdev_alloc_skb_ip_align in e100_rx_alloc_skb is not > released, which causes a possible resource leak. > This patch adds error handling code to fix it. > > Signed-off-by: Jia-Ju Bai > --- > drivers/net/ethernet/intel/e100.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) Tested-by: Aaron Brown -- 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/