Commit 0dbc4162 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Tony Nguyen
Browse files

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tested-by: default avatarGurucharan G <gurucharanx.g@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent e75ed29d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;