From: Markus Elfring Date: Sat, 05 Oct 2019 16:48:20 +0000 Subject: Re: [PATCH] mwifiex: pcie: Fix memory leak in mwifiex_pcie_alloc_cmdrsp_buf Message-Id: <7d8314a8-2f92-112b-fffd-83a47044a015@web.de> List-Id: References: <20191004200853.23353-1-navid.emamdoost@gmail.com> In-Reply-To: <20191004200853.23353-1-navid.emamdoost@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Navid Emamdoost , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Cc: Navid Emamdoost , Kangjie Lu , Stephen McCamant , Amitkumar Karwar , "David S. Miller" , Ganapathi Bhat , Kalle Valo , Nishant Sarmukadam , Xinming Hu , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org > In mwifiex_pcie_alloc_cmdrsp_buf, a new skb is allocated which should be > released if mwifiex_map_pci_memory() fails. The release is added. Please improve this change description. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?idNa655343ce4180fe9b2c7ec8cb8ef9884a47901#n151 Regards, Markus