Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1978303ybl; Sun, 18 Aug 2019 15:23:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLLm6szyyBJOjHR35VuvatxHqC2tuEU+XVCFg0w0Pl4TZ08WopGo8PVTXuybQa7YMtQTes X-Received: by 2002:a17:90a:b102:: with SMTP id z2mr18073608pjq.91.1566167010933; Sun, 18 Aug 2019 15:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566167010; cv=none; d=google.com; s=arc-20160816; b=YUltF377qhVwWFxou+JKQiNpJfcu4B4dQXE9LoqqY0GXW7TfeS951mzfDn19cyH7Qq 6LiTDXiFYrX2tF4OyVWB6wBsTZBCrXDgrmTM5fAhr/ctMnfwjtWSaA7e5PIgpF+4sYhR w8m95uuvql8tGgh+Tib/zTyMzmhMw3fHJXVwpSUAXTm+L7Os1186swrxZHgQBs93/Xwz CqXi+0SXJe23YexHR6eVpe+cX9IGgx4P4VM2mbzD/c+GTAvJ25Hhd/NAv04WMqciuQBQ U0aZriCzPSg9t24xkSvwlgd0c3DGIKf8eIcnpBPrR9k7jPARyTFSQJlzH60xhcq27QRW A58w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=BIwwcUzUwKDrYvP2mRkmvTCd4zp/5NvoAHs4dqDs00g=; b=eMvHNSDL42wIXhz2LbVO4ak86aUfUissDmRTXLWmzdf0SykGDz/2yY0++mRb7nw3k0 iaTwV9SdpoOrH1KM4jgoOlsLA7aSIBXMszKysloUf+TZEPfCk3MGtOlqDDgLvTuGS43n 6TSkoQhsRtkyz0aYpdiXrJtnEQWzutdsG2xrnURvi0hsu5x89IjV6DgYvTAr9cmgSBhn BAGuzALQ0d6s8CJ1HvOy9GYjYE88wbkrMFNzQ9kc3b2clRqmue9/DSpscEqZALmzgi9z zkIw/KGVQjPIDCPX84RgckaNfW6b2Ddp/le71bd8ZXUo+g/CwBzWpYEoYjq9X/6HYatN Nhbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24si8470995pgu.501.2019.08.18.15.23.16; Sun, 18 Aug 2019 15:23:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726281AbfHRWWW convert rfc822-to-8bit (ORCPT + 99 others); Sun, 18 Aug 2019 18:22:22 -0400 Received: from mga07.intel.com ([134.134.136.100]:47077 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbfHRWWV (ORCPT ); Sun, 18 Aug 2019 18:22:21 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Aug 2019 15:22:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,402,1559545200"; d="scan'208";a="202067407" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga004.fm.intel.com with ESMTP; 18 Aug 2019 15:22:20 -0700 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 18 Aug 2019 15:22:20 -0700 Received: from fmsmsx102.amr.corp.intel.com ([169.254.10.170]) by FMSMSX109.amr.corp.intel.com ([169.254.15.42]) with mapi id 14.03.0439.000; Sun, 18 Aug 2019 15:22:19 -0700 From: "Perez-Gonzalez, Inaky" To: David Miller CC: "wenwen@cs.uga.edu" , linux-wimax , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] wimax/i2400m: fix a memory leak bug Thread-Topic: [PATCH v2] wimax/i2400m: fix a memory leak bug Thread-Index: AQHVU6hH81gCZjl8EkOIBEVs8oU/ZacB4SwA//+eT0o= Date: Sun, 18 Aug 2019 22:22:19 +0000 Message-ID: <49AFD2AB-DCA4-470F-96AD-826FAEFDD616@intel.com> References: <1565900991-3573-1-git-send-email-wenwen@cs.uga.edu>,<20190818.141158.218871786116375619.davem@davemloft.net> In-Reply-To: <20190818.141158.218871786116375619.davem@davemloft.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This driver should be orphaned. While I can?t certainly say nobody is using it, the HW has not been sold for years and it hasn?t been brought to current LK standards. If your assesment is the code shall not be used, it?s then another argument towards disconnecting it. > On Aug 18, 2019, at 14:12, David Miller wrote: > > From: Wenwen Wang > Date: Thu, 15 Aug 2019 15:29:51 -0500 > >> In i2400m_barker_db_init(), 'options_orig' is allocated through kstrdup() >> to hold the original command line options. Then, the options are parsed. >> However, if an error occurs during the parsing process, 'options_orig' is >> not deallocated, leading to a memory leak bug. To fix this issue, free >> 'options_orig' before returning the error. >> >> Signed-off-by: Wenwen Wang > > Applied, but... looking at the rest of this file I hope nobody is actually > running this code.