[PATCH] ice: Use bitmap_free() to free bitmap

Subsystems: intel ethernet drivers, networking drivers, the rest

STALE1734d

2 messages, 2 authors, 2022-01-05 · open the first message on its own page

[PATCH] ice: Use bitmap_free() to free bitmap

From: Christophe JAILLET <hidden>
Date: 2021-12-26 14:39:04

kfree() and bitmap_free() are the same. But using the latter is more
consistent when freeing memory allocated with bitmap_zalloc().

Signed-off-by: Christophe JAILLET <redacted>
---
 drivers/net/ethernet/intel/ice/ice_ptp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c
index d3f65e061a62..ae291d442539 100644
--- a/drivers/net/ethernet/intel/ice/ice_ptp.c
+++ b/drivers/net/ethernet/intel/ice/ice_ptp.c
@@ -2229,7 +2229,7 @@ ice_ptp_release_tx_tracker(struct ice_pf *pf, struct ice_ptp_tx *tx)
 	kfree(tx->tstamps);
 	tx->tstamps = NULL;
 
-	kfree(tx->in_use);
+	bitmap_free(tx->in_use);
 	tx->in_use = NULL;
 
 	tx->len = 0;
-- 
2.32.0

RE: [Intel-wired-lan] [PATCH] ice: Use bitmap_free() to free bitmap

From: G, GurucharanX <hidden>
Date: 2022-01-05 17:28:31

-----Original Message-----
From: Intel-wired-lan <redacted> On Behalf Of
Christophe JAILLET
Sent: Sunday, December 26, 2021 8:09 PM
To: Brandeburg, Jesse <redacted>; Nguyen, Anthony L
[off-list ref]; davem@davemloft.net; kuba@kernel.org
Cc: netdev@vger.kernel.org; kernel-janitors@vger.kernel.org; Christophe
JAILLET [off-list ref]; intel-wired-lan@lists.osuosl.org;
linux-kernel@vger.kernel.org
Subject: [Intel-wired-lan] [PATCH] ice: Use bitmap_free() to free bitmap

kfree() and bitmap_free() are the same. But using the latter is more consistent
when freeing memory allocated with bitmap_zalloc().

Signed-off-by: Christophe JAILLET <redacted>
---
 drivers/net/ethernet/intel/ice/ice_ptp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Tested-by: Gurucharan G <redacted> (A Contingent worker at Intel)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help