From nobody Sun Sep 14 22:48:28 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F38BC6FA82 for ; Tue, 13 Sep 2022 14:39:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234428AbiIMOi3 (ORCPT ); Tue, 13 Sep 2022 10:38:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234190AbiIMOgv (ORCPT ); Tue, 13 Sep 2022 10:36:51 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 814AA6B66C; Tue, 13 Sep 2022 07:20:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 499D2B80FA7; Tue, 13 Sep 2022 14:19:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E740C433C1; Tue, 13 Sep 2022 14:19:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1663078782; bh=UEI2QPagaJd1R3pAYPY9+IOswULFy5kiobbBumVlZSw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=09ujGv+2DO0biaPZTks5QzcgxJ7Ep7t+CSCD7OL8yI2XRiSfsHj0Nll6En3jjUEC7 jqYacxrarnHWtEJ0q7wWr+hVzIEtg+tez7slOXRqpnfA4XjWrJergLdv8nJ9OucyHO ZUXy1Tpezhw8kaIMM30XLyuHebPWgNPNwSvXNhrc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michal Swiatkowski , Tony Nguyen , Sasha Levin , Gurucharan Subject: [PATCH 5.15 081/121] ice: use bitmap_free instead of devm_kfree Date: Tue, 13 Sep 2022 16:04:32 +0200 Message-Id: <20220913140400.853319346@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220913140357.323297659@linuxfoundation.org> References: <20220913140357.323297659@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Michal Swiatkowski [ 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 dynam= ically") Signed-off-by: Michal Swiatkowski Tested-by: Gurucharan (A Contingent worker at Int= el) Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/ice/ice_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethern= et/intel/ice/ice_main.c index b9d45c7dbef18..63ae4674d2000 100644 --- a/drivers/net/ethernet/intel/ice/ice_main.c +++ b/drivers/net/ethernet/intel/ice/ice_main.c @@ -3549,7 +3549,7 @@ static int ice_init_pf(struct ice_pf *pf) =20 pf->avail_rxqs =3D bitmap_zalloc(pf->max_pf_rxqs, GFP_KERNEL); if (!pf->avail_rxqs) { - devm_kfree(ice_pf_to_dev(pf), pf->avail_txqs); + bitmap_free(pf->avail_txqs); pf->avail_txqs =3D NULL; return -ENOMEM; } --=20 2.35.1