Skip to content

Commit 3e245b0

Browse files
Michal Swiatkowskigregkh
authored andcommitted
ice: use bitmap_free instead of devm_kfree
[ Upstream commit 59ac325 ] pf->avail_txqs was allocated using bitmap_zalloc, bitmap_free should be used to free this memory. Fixes: 78b5713 ("ice: Alloc queue management bitmaps and arrays dynamically") Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 8527c9a commit 3e245b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/intel/ice/ice_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3549,7 +3549,7 @@ static int ice_init_pf(struct ice_pf *pf)
35493549

35503550
pf->avail_rxqs = bitmap_zalloc(pf->max_pf_rxqs, GFP_KERNEL);
35513551
if (!pf->avail_rxqs) {
3552-
devm_kfree(ice_pf_to_dev(pf), pf->avail_txqs);
3552+
bitmap_free(pf->avail_txqs);
35533553
pf->avail_txqs = NULL;
35543554
return -ENOMEM;
35553555
}

0 commit comments

Comments
 (0)