]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ice: Use bitmap_free() to free bitmap
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 26 Dec 2021 14:38:57 +0000 (15:38 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 6 Jan 2022 18:15:25 +0000 (10:15 -0800)
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 <christophe.jaillet@wanadoo.fr>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_ptp.c

index d3f65e061a62d6ddd9d461742d6561091efe0a36..ae291d442539710d63e7dede50aea411fbc88ade 100644 (file)
@@ -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;