]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ice: use bitmap_free instead of devm_kfree
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Wed, 17 Aug 2022 08:53:20 +0000 (10:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 08:47:15 +0000 (10:47 +0200)
commit14c1d71b4330fc8a5328d657970d00825036bdee
tree9cd33b5f94217556d9d871b7fda2d249648668a2
parent07f40e9f0ff342eb3e97d5c544783b7cb641689c
ice: use bitmap_free instead of devm_kfree

[ Upstream commit 59ac325557b6c14f1f793b90d3946bc145ffa085 ]

pf->avail_txqs was allocated using bitmap_zalloc, bitmap_free should be
used to free this memory.

Fixes: 78b5713ac1241 ("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>
drivers/net/ethernet/intel/ice/ice_main.c