From: Christophe JAILLET Date: Sun, 26 Dec 2021 14:38:57 +0000 (+0100) Subject: ice: Use bitmap_free() to free bitmap X-Git-Tag: baikal/aarch64/sdk6.1~4966^2~37^2 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=cb1b13c552b40795e5b8d927456f513aa5c56769;p=kernel.git 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 Tested-by: Gurucharan G Signed-off-by: Tony Nguyen --- diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c index d3f65e061a62d..ae291d4425397 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;