Skip to content

Commit

Permalink
ice: Use bitmap_free() to free bitmap
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christophe JAILLET authored and Tony Nguyen committed Jan 6, 2022
1 parent e75ed29 commit 0dbc416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/ice/ice_ptp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0dbc416

Please sign in to comment.