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 smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EA6B4C25B08 for ; Wed, 17 Aug 2022 09:04:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 7705160B24; Wed, 17 Aug 2022 09:04:19 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 7705160B24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1660727059; bh=t8YEkadIVBpz1uezezlxvu8A74RCHEOXMIb6GW2rwyk=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=80LBcXpkb6JRnjDwjUYRsEmPZfFW8ZWFpd+pWy352fXQqT1ldf4zT9NI8ICTsLdY0 J7mjVGimB5p7VxzMhs4zldqpyy7S1ZF0uayssk3FFAYMsYeDAAgPA8haoFtO0ltNLJ FM6i/q5/K9vA1kZbZcThbZRlABK4b/YmrkvdYTWTBzsJhhPwQzyV6bqj48eWvMJ7/h YIykzLco1u1D2l0CXYuV4pTyvCDbK5DLa+7bYxH0RAl4lv/c3jwe7ggpYSgATY1CSg FtWOdVnbo4MNGoxIg/DDxHwGk/GwBUduf+51LQemD1YMhvEElvpDjQkaBYM7dgvdbc w54QaqQ1N1LJA== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DLJGLKNSMjlK; Wed, 17 Aug 2022 09:04:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 907B66108D; Wed, 17 Aug 2022 09:04:18 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 907B66108D Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 2551F1BF873 for ; Wed, 17 Aug 2022 09:04:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id F161D60B24 for ; Wed, 17 Aug 2022 09:04:16 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org F161D60B24 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wkP4j5LCx8aK for ; Wed, 17 Aug 2022 09:04:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 808356108D Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by smtp3.osuosl.org (Postfix) with ESMTPS id 808356108D for ; Wed, 17 Aug 2022 09:04:15 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6400,9594,10441"; a="275498146" X-IronPort-AV: E=Sophos;i="5.93,242,1654585200"; d="scan'208";a="275498146" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2022 02:04:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,242,1654585200"; d="scan'208";a="667524009" Received: from wasp.igk.intel.com ([10.102.20.192]) by fmsmga008.fm.intel.com with ESMTP; 17 Aug 2022 02:04:01 -0700 From: Michal Swiatkowski To: intel-wired-lan@lists.osuosl.org Date: Wed, 17 Aug 2022 10:53:20 +0200 Message-Id: <20220817085320.58968-1-michal.swiatkowski@linux.intel.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660727055; x=1692263055; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=GCaUm0MCtfpJPMrWjyVkyYxLvuLn+Zyh/vOI6FtaBnU=; b=G4zp6mvAf2BBtY36x/51fvDJAhYvay1ywGj5+hY9plwrGKNqWR1QvGNO MI3o9LZYQy6Ks/8Rp9nLsYsP2wO9tz4d5qAYI+WnoZ9fN9a6RqRGtuVjO AAzyQcDXYh1WZkZNzubI1eDHWqp8vdRK//WE2icALjkFv9A1kiYeYqENT CY9U7t8HpSKCNP7ZHyHe01JGAWG0iouMIBuf3Scw9kq+QuUKUk2KGEGWS uoXRpYpwx1EUbQd5iexoe/GsCktxd8+/T9NMUSeJ3DGYWU1+uQgEGxgF6 ad+J5ZcXvbG7vGcOCiMjWIn543gb9UIQgC5Tuxk5rIMkFp5gqSxn3cM9k g==; X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=G4zp6mvA Subject: [Intel-wired-lan] [PATCH net v1] ice: use bitmap_free instead of devm_kfree X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" 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 --- 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/ethernet/intel/ice/ice_main.c index a7f69c961676..001e45bc0d96 100644 --- a/drivers/net/ethernet/intel/ice/ice_main.c +++ b/drivers/net/ethernet/intel/ice/ice_main.c @@ -3926,7 +3926,7 @@ static int ice_init_pf(struct ice_pf *pf) pf->avail_rxqs = 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 = NULL; return -ENOMEM; } -- 2.36.1 _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan