Received: by 10.213.65.68 with SMTP id h4csp2138292imn; Thu, 5 Apr 2018 09:34:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx49u7O84qwHKXSwLiXK0nhYo4/nTE8Q8NUEptKNxH/cFWOzl+zG+4gjnCK8HXVBqHLQE3nYv X-Received: by 2002:a17:902:6ac1:: with SMTP id i1-v6mr23099848plt.152.1522946094734; Thu, 05 Apr 2018 09:34:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522946094; cv=none; d=google.com; s=arc-20160816; b=XylyvY0oUrZjopmBG1IS4eTXeS71BsnFAM3CScqi3HyCja2RhN1omdJYaDAYQAYWfV l30vucjYY4w5PzD6kbfClqyaHK3ehk0XjKIxe6Wg/P/noPsj+6ciijGfMH5WQhbtBdg4 QV42R+Neb5YQ9J3UY25dDlfsqWsaRH7d+BR5y5nMvc4/s4+ZNenXDuP8ln5uuRXbvvcU xwl0Q7YgWhgJQvIU8TLv/IPiR+hIFWU1HiLCrboZ0DnBYhBOxLCSqiOkc5/zeIXS8QV9 Kqc+fDh3kI08MPLQWuP9P6jqxA4FdycwV5rBy65Y6XywCW2Glb+1cftW9PdPlCw96+kr eg1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:arc-authentication-results; bh=M4IhOt+XfRPWyJo63ewrJ8jkf0Br6g7knH/aZ94uuR4=; b=PhP/zlMgfi9p8YY5iK69Gd2Z7zjGJSM/vUCNTj+syInjTKDaj0vuYy+miHVLeew1ku qBLPUmmfhzBiIK4L/sxXxbA1+1Me3vqU+vQxRNhjHHNpmwUYoHnUudO/5SoBFtfkPv4t pUemi3SwNt/W0/8IPewyPGuhrO0w8KODvnA2ZpmTJPCCKIpTXP5P1i4+oGdD3PVnG0UO 1xOAN50lu/cxqhwYzrWceo0nZqyIbVf+ouy5qqqpEpEJzguvnMDULUA5g0aMAxikfXKM w/hixi9aTqtJ2CsElvr49rXF0F7t7nDprweTwgbChKqMJSIOV+X7nxnqkTR4Dbln332f +8aQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q66si6205031pfk.190.2018.04.05.09.34.39; Thu, 05 Apr 2018 09:34:54 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751451AbeDEQdT (ORCPT + 99 others); Thu, 5 Apr 2018 12:33:19 -0400 Received: from gateway21.websitewelcome.com ([192.185.45.43]:26146 "EHLO gateway21.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751251AbeDEQdS (ORCPT ); Thu, 5 Apr 2018 12:33:18 -0400 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway21.websitewelcome.com (Postfix) with ESMTP id A3F69400DDB81 for ; Thu, 5 Apr 2018 11:33:17 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id 47p7f4GeWcGlp47p7fpcNN; Thu, 05 Apr 2018 11:33:17 -0500 Received: from [189.145.54.187] (port=59050 helo=[192.168.1.71]) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1f47p7-000cPm-7b; Thu, 05 Apr 2018 11:33:17 -0500 Subject: Re: [PATCH] qtnfmac: pearl: pcie: fix memory leak in qtnf_fw_work_handler To: Igor Mitsyanko , Avinash Patil , Sergey Matyukevich , Kalle Valo , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180405154949.GA32223@embeddedor.com> <20180405163100.cuaedftds47pxdrn@bars> From: "Gustavo A. R. Silva" Message-ID: <123880c0-25f0-f53e-8c75-2a01c2756b4e@embeddedor.com> Date: Thu, 5 Apr 2018 11:33:15 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180405163100.cuaedftds47pxdrn@bars> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.145.54.187 X-Source-L: No X-Exim-ID: 1f47p7-000cPm-7b X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.1.71]) [189.145.54.187]:59050 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 14 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sergey, On 04/05/2018 11:31 AM, Sergey Matyukevich wrote: > Hello Gustavo, > >> In case memory resources for fw were succesfully allocated, release >> them before jumping to fw_load_fail. >> >> Addresses-Coverity-ID: 1466092 ("Resource leak") >> Fixes: c3b2f7ca4186 ("qtnfmac: implement asynchronous firmware loading") >> Signed-off-by: Gustavo A. R. Silva >> --- >> drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c | 4 ++++ >> 1 file changed, 4 insertions(+) > > Thanks for the patch! > Glad to help. :) > Reviewed-by: Sergey Matyukevich > Thanks -- Gustavo