Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp652091pxb; Tue, 5 Apr 2022 17:22:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXlB1F5/pEM92qbfaaIGtM+fiNJsgyPCaxgPfvAv2DsP7oP13qoofYmujpaJEKvQe9jeUo X-Received: by 2002:a17:90b:1a8a:b0:1c9:ce8e:7a19 with SMTP id ng10-20020a17090b1a8a00b001c9ce8e7a19mr7041315pjb.100.1649204571137; Tue, 05 Apr 2022 17:22:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649204571; cv=none; d=google.com; s=arc-20160816; b=QGoV0d19adovzuXA28KXrAPWPr4VKLtPORQZGtWUiMRYpt6Mb1izZ/Oa/+2CU+rwiR xQ4uwLAZpFcSUzNZLrsf4c8eGccLdiciMQSBjWD4WZtIPoYcJgmqePgLa/sd5yPNGGgj lhpTkO8rZlo3enLXF51RxmU3r0TgOB9/RlDeUgOlkwSHqTMTKuFDA0MFtceixx98K3H1 ue8hwR9jRE1Qy9RXDjXyz3CA5TfjNNmAM3xW2ktTAOXVLVy+C6jYFjJ9jhFie9zB/hKy ZMSqavE/EjotY+QK+Xkc8YWcnPpGmuF65baCsumROYWqsO3jL2DJFQV2XfX28LUxMSu4 xUsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kvU0fVj45pYs5SZCAyLOadI8Qvwo8qIc4TbeUtJYZWY=; b=nq+dsjC/vrRaAAHKx1ark/m65BpND6vlW+Pw8qqnE7Z+xDkZfAtVbKyR409V4qtIzN q44yiWyDyZE2vaJUC8qepGGFMS3iSJ41gqZh4Dvs9+rGEg5DbzCgCCXP39tRupxbGvAm m3D4t2FoBad+7Nz9ZjZAEtQS4B5bsxg6wD4yON4IUIP10Jd+3AgDp3se7h1GlcR/rJti Qf/mORW6+60U/cCmwTP3UQzQ5xGotg9HuYngu+4LG8MMXmhgKJ3q+EcD7YkVT7mBXtAf 2sVqLpo4jrpyADtSF9n9nX6g9smazxXPKBABgDRzUIF4/hp19qHKKjPCcq57iGehek6G DDPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tbeyZd4s; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d11-20020a17090ad98b00b001bd14e01f27si3199969pjv.21.2022.04.05.17.22.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 17:22:51 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tbeyZd4s; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 127522042A6; Tue, 5 Apr 2022 17:09:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240611AbiDENCA (ORCPT + 99 others); Tue, 5 Apr 2022 09:02:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242811AbiDEJIX (ORCPT ); Tue, 5 Apr 2022 05:08:23 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 974D18930E; Tue, 5 Apr 2022 01:57:20 -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 sin.source.kernel.org (Postfix) with ESMTPS id D79F1CE1C6A; Tue, 5 Apr 2022 08:57:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFFC7C385A1; Tue, 5 Apr 2022 08:57:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649149037; bh=TkRjkbHf35GwvaY8YoQCXT3xu4BK4ElnagkTLzoI8O8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tbeyZd4sWS2NB1o4/DnI5Qfm2eJze4H2SczIVqWSf0ZBPrUTNHAAxx7DE36HS4vCf Ry2/hbYwTCpQ0F+WL4v7XnlLpGUGF+5vjWuag+8zWGrU94B4kePOrn1WLzQ1vWS/Nu 75BaJNyWiBRESFJmc5qZLmfnbnTIEZDcvE/qYwjc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jiasheng Jiang , Charles Keepax , Sebastian Reichel , Sasha Levin Subject: [PATCH 5.16 0571/1017] power: supply: wm8350-power: Add missing free in free_charger_irq Date: Tue, 5 Apr 2022 09:24:44 +0200 Message-Id: <20220405070411.228392156@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiasheng Jiang [ Upstream commit 6dee930f6f6776d1e5a7edf542c6863b47d9f078 ] In free_charger_irq(), there is no free for 'WM8350_IRQ_CHG_FAST_RDY'. Therefore, it should be better to add it in order to avoid the memory leak. Fixes: 14431aa0c5a4 ("power_supply: Add support for WM8350 PMU") Signed-off-by: Jiasheng Jiang Acked-by: Charles Keepax Signed-off-by: Sebastian Reichel Signed-off-by: Sasha Levin --- drivers/power/supply/wm8350_power.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/supply/wm8350_power.c b/drivers/power/supply/wm8350_power.c index 9c46c48dccb1..908cfd45d262 100644 --- a/drivers/power/supply/wm8350_power.c +++ b/drivers/power/supply/wm8350_power.c @@ -524,6 +524,7 @@ static void free_charger_irq(struct wm8350 *wm8350) wm8350_free_irq(wm8350, WM8350_IRQ_CHG_TO, wm8350); wm8350_free_irq(wm8350, WM8350_IRQ_CHG_END, wm8350); wm8350_free_irq(wm8350, WM8350_IRQ_CHG_START, wm8350); + wm8350_free_irq(wm8350, WM8350_IRQ_CHG_FAST_RDY, wm8350); wm8350_free_irq(wm8350, WM8350_IRQ_CHG_VBATT_LT_3P9, wm8350); wm8350_free_irq(wm8350, WM8350_IRQ_CHG_VBATT_LT_3P1, wm8350); wm8350_free_irq(wm8350, WM8350_IRQ_CHG_VBATT_LT_2P85, wm8350); -- 2.34.1