From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-108-mta59.mxroute.com (mail-108-mta59.mxroute.com [136.175.108.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1EFE3D331B for ; Fri, 6 Feb 2026 13:10:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.175.108.59 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770383408; cv=none; b=BhFIsxvWU3PggGsRKpC96+JamAzKER0xHJ379UZYY/YEqiPUDeQH3IxswTe7uM4fuV0xkkBTVGyH1z73D81oSb4npJDPwUbKYQChKK51FukAHwNJLKKnm4/+jnzIvMcqTwjPebHeB8ri9hb9JJeuHto7d8snDOdWqR00lC01bxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770383408; c=relaxed/simple; bh=gFYsxyC9dgDjeDfBVtcYJzyaGuVUUL/UvNe3j9g5oh8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FRD3iIQLLhfCAjkjQBwVBilfR+gOhNXUtSCBJvcrkBpP9HJE5CdjWfTjbmytAC2CGUyqV59lHdljNV99jsQF+1KQmOT7czl/xi2JoWGLn3GqlqQ68R+8X1LBIv0D372n4F7XvQJIiHeL44zGIEHg/u46XfFpojAUDu3SWMa274c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mboxify.com; spf=pass smtp.mailfrom=mboxify.com; dkim=pass (2048-bit key) header.d=mboxify.com header.i=@mboxify.com header.b=XztLg8BH; arc=none smtp.client-ip=136.175.108.59 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mboxify.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mboxify.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mboxify.com header.i=@mboxify.com header.b="XztLg8BH" Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta59.mxroute.com (ZoneMTA) with ESMTPSA id 19c3312d2440009140.00e for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 06 Feb 2026 13:09:57 +0000 X-Zone-Loop: b4fd4d5327c98dd8f57f42161c88558bc0c503fb09eb DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mboxify.com ; s=x; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=xX1GX2YlUSWR6zjeumqZ1M4CyIIwVy3o6ga5DLteJqg=; b=XztLg8BH0PMtZbWfT3Dfhtxf5L KKZk2Qb7M5CA7qaSwXo0XxmJpjjZirQiQVzpJnJsdwT/2Ql6aYpvDTOIz+zqmUSCuVRDf0CoKW2Cw IL5T6kefFpwvqvgJKdUM+q1VTsk2z/qjgqmWp0WB53UEcJgbFqrHnO/XtlU/dbetv6LvnQ4xDpwEG ViKkVm+5YnOYwb3i9qPDqyAIBSZXVJlp1Flr7h+xwj2zmb/jy1B+1tMNyL8DGoCUzi3ULc47U3te3 1VE/rxQ+rTG/zfIwe4/FWTY7BzARXESPmxX250vxZ5D0RigMVSqXA7lIgd1Y+b0+xLxEzK9TVduQy F+peWmUw==; From: Bo Sun To: kuba@kernel.org, pabeni@redhat.com Cc: gakula@marvell.com, sgoutham@marvell.com, sbhatta@marvell.com, hkelam@marvell.com, horms@kernel.org, bbhushan2@marvell.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, sumang@marvell.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Bo Sun Subject: [PATCH net v2 2/2] octeontx2-af: CGX: replace kfree() with rvu_free_bitmap() Date: Fri, 6 Feb 2026 21:09:25 +0800 Message-Id: <20260206130925.1087588-3-bo@mboxify.com> In-Reply-To: <20260206130925.1087588-1-bo@mboxify.com> References: <20260206130925.1087588-1-bo@mboxify.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Id: bo@mboxify.com mac_to_index_bmap is allocated with rvu_alloc_bitmap(), so free it with rvu_free_bitmap() instead of open-coding kfree(.bmap) to keep the alloc/free API pairing consistent. Signed-off-by: Bo Sun --- drivers/net/ethernet/marvell/octeontx2/af/cgx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/cgx.c b/drivers/net/ethernet/marvell/octeontx2/af/cgx.c index fd4792e432bf..29f5def796ba 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/cgx.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/cgx.c @@ -1822,7 +1822,7 @@ static int cgx_lmac_exit(struct cgx *cgx) continue; cgx->mac_ops->mac_pause_frm_config(cgx, lmac->lmac_id, false); cgx_configure_interrupt(cgx, lmac, lmac->lmac_id, true); - kfree(lmac->mac_to_index_bmap.bmap); + rvu_free_bitmap(&lmac->mac_to_index_bmap); rvu_free_bitmap(&lmac->rx_fc_pfvf_bmap); rvu_free_bitmap(&lmac->tx_fc_pfvf_bmap); kfree(lmac->name);