From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9D9CC433FE for ; Mon, 3 Oct 2022 11:50:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbiJCLu3 (ORCPT ); Mon, 3 Oct 2022 07:50:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbiJCLuT (ORCPT ); Mon, 3 Oct 2022 07:50:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3C293057C; Mon, 3 Oct 2022 04:50:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5038BB81092; Mon, 3 Oct 2022 11:50:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 0B894C43470; Mon, 3 Oct 2022 11:50:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664797815; bh=vVimnp4wVXRu2RYMM8Bka2hvV81/4nCHp6+HBBhBgLM=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=j0gXbmZOcqXbIU7h3x1NeJeBYgxZ0GHHufhCjmh9DZ1bwhqWJI5+Sb1Ru48O/gBIY Z0eDjFrdDnHAvRN3GBuAGMieErcDdP/tyb+FODrVtNlyQa3ckebIMKxchMc9Lg9Joz iHrHFGSAA/g3jTQ+nILE/ttgbU4Mt7TpKYmveELVCTukfkBMW+Gu8ByML4nh//rhff sfNFUS7LkI6pRpH+lRqcOp5Bpni+KL9sr9L/a0FVKLvKINOgAackwLcHLpVC0mWIoE eGNLCUDbYA/F0y/r3r8d9RVeZW1qdavs9mC1l365pCVdUXuU34VjCaqgRVdqmEbF54 ftNIob+zukrWA== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id E16B9E52505; Mon, 3 Oct 2022 11:50:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] bnx2x: fix potential memory leak in bnx2x_tpa_stop() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <166479781491.26331.11983869215638641295.git-patchwork-notify@kernel.org> Date: Mon, 03 Oct 2022 11:50:14 +0000 References: <20220930062843.5654-1-niejianglei2021@163.com> In-Reply-To: <20220930062843.5654-1-niejianglei2021@163.com> To: Jianglei Nie Cc: aelior@marvell.com, skalluru@marvell.com, manishc@marvell.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (master) by David S. Miller : On Fri, 30 Sep 2022 14:28:43 +0800 you wrote: > bnx2x_tpa_stop() allocates a memory chunk from new_data with > bnx2x_frag_alloc(). The new_data should be freed when gets some error. > But when "pad + len > fp->rx_buf_size" is true, bnx2x_tpa_stop() returns > without releasing the new_data, which will lead to a memory leak. > > We should free the new_data with bnx2x_frag_free() when "pad + len > > fp->rx_buf_size" is true. > > [...] Here is the summary with links: - bnx2x: fix potential memory leak in bnx2x_tpa_stop() https://git.kernel.org/netdev/net/c/b43f9acbb894 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html