From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8836DA0521; Tue, 28 Jul 2020 05:54:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3B6F51BFF3; Tue, 28 Jul 2020 05:54:10 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id F3EDA1BFF2 for ; Tue, 28 Jul 2020 05:54:08 +0200 (CEST) IronPort-SDR: U6ocHi8c4Hj9QAKnJbThtxcRfeQKZVNpMmPCHCqtjq0i/3Ej/axWt/gkTRIbfsoUbc0DHDP3S1 zLu6CwwAtxKQ== X-IronPort-AV: E=McAfee;i="6000,8403,9695"; a="212671037" X-IronPort-AV: E=Sophos;i="5.75,404,1589266800"; d="scan'208";a="212671037" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2020 20:54:07 -0700 IronPort-SDR: sja0/TcAKd/7VRiKbfWQQ0G6KYcPuAs+X1OO8/whOOkV0Zp9KkFFkER07KXEDxa93VjyEdZeGN exv5I4lAqlwA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,404,1589266800"; d="scan'208";a="320247446" Received: from npg-dpdk-vpp-scm-1.sh.intel.com ([10.67.118.226]) by orsmga008.jf.intel.com with ESMTP; 27 Jul 2020 20:54:05 -0700 From: chenmin.sun@intel.com To: qi.z.zhang@intel.com, beilei.xing@intel.com Cc: dev@dpdk.org, chenmin.sun@intel.com Date: Tue, 28 Jul 2020 20:50:58 +0800 Message-Id: <20200728125058.50292-1-chenmin.sun@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] net/i40e: fix a wrong bitmap free call X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Chenmin Sun This patch fixes the coverity warning #361024. rte_bitmap_free() is not a right way to free a bitmap, replacing it with rte_free(). Signed-off-by: Chenmin Sun --- drivers/net/i40e/i40e_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 05d5f2861..a17bc9bab 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -1870,7 +1870,7 @@ i40e_fdir_memory_cleanup(struct i40e_pf *pf) if (fdir_info->hash_table) rte_hash_free(fdir_info->hash_table); if (fdir_info->fdir_flow_pool.bitmap) - rte_bitmap_free(fdir_info->fdir_flow_pool.bitmap); + rte_free(fdir_info->fdir_flow_pool.bitmap); if (fdir_info->fdir_flow_pool.pool) rte_free(fdir_info->fdir_flow_pool.pool); if (fdir_info->fdir_filter_array) -- 2.17.1