Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp656028pxm; Thu, 3 Mar 2022 01:46:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbZOy7S1n/PEC2SiMAm68XWgNG6PFjn6/vieiSGr3Rj7fJLXMwopjbTQhsN7SBKtDtmDhW X-Received: by 2002:a17:90b:4ad2:b0:1bf:d47:8077 with SMTP id mh18-20020a17090b4ad200b001bf0d478077mr2373339pjb.85.1646300796254; Thu, 03 Mar 2022 01:46:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646300796; cv=none; d=google.com; s=arc-20160816; b=QbIvoTpWRSuLKhTB0j66q9ONHOB+COIR5slvPITZ1/Ot4oMzPDJA7Jx6HhLZIdhtKf OB+2iKkxH3hc8DOMzNby2NazuasZltKKQVULVnSZSPZKr4Es9Xr8rSWO0Q3elhDXOVUa jQciHqe3AzkSoDfAFf0000811rlKWyW+geVsBN/+tPGtNa1+Ye8k9PB+Kpgpf0ofTJbQ 5P0FbkCGglCgud8PheCJ9Ps5Ht+3bdt5/TfShm0/t7u1bMQNZDucp369ax/dxURvYz+c bvWHWzicLSTkj0mRICxDszvFn7fwP1rrML7VUc0LmwSSUpHbnQE1n9RtkuSRuFVTXYr+ XtZw== 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 :message-id:date:subject:cc:to:from; bh=sp6z985vQZ5wTrAB4pE3Y0HEW+0/z1q/QGcB55dK5Ns=; b=Z8SVCMtuQJkaOryF5JuqQG/RjWLx2V4V39mhSreqQsWIoQn9lS41bTHSPQKsOaTWsX IdmjLHgxGGXBMHCDg3olI27dHdduNvHXRGfqw1tarFV0LJdxtL28hxLs8wYsmCPjVmYT UtFn9EJg0Xc7SUBTM7HNNZZafamPGU08SdmgKuay5NjRuylUYo7obfP2kZc5Aa9yX/NQ PfPW+k8tkI3MwuU3FZFMjPweP/nUCCvPTPKfzYiuZMcDhGtzUvpj2VCglX9o5cWuYvsE f+1RnqmGkDrmRiGVUDcoasLh/OQD/5lmcX4T0YUcOOj4Rxp+1ZApKbeFSabaflxXDHP4 Cdhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o19-20020a656a53000000b00364fd3d64d4si1987235pgu.584.2022.03.03.01.46.20; Thu, 03 Mar 2022 01:46:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232084AbiCCJo1 (ORCPT + 99 others); Thu, 3 Mar 2022 04:44:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229867AbiCCJoZ (ORCPT ); Thu, 3 Mar 2022 04:44:25 -0500 Received: from cstnet.cn (smtp21.cstnet.cn [159.226.251.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 83C48172E56; Thu, 3 Mar 2022 01:43:39 -0800 (PST) Received: from localhost.localdomain (unknown [124.16.138.126]) by APP-01 (Coremail) with SMTP id qwCowAA3PfG7jSBiOKIgAg--.35881S2; Thu, 03 Mar 2022 17:43:24 +0800 (CST) From: Jiasheng Jiang To: sre@kernel.org Cc: patches@opensource.cirrus.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Jiasheng Jiang Subject: [PATCH] power: supply: Add missing free in free_charger_irq Date: Thu, 3 Mar 2022 17:43:22 +0800 Message-Id: <20220303094322.342569-1-jiasheng@iscas.ac.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: qwCowAA3PfG7jSBiOKIgAg--.35881S2 X-Coremail-Antispam: 1UD129KBjvdXoW7GFW8Cr43Wr1DXr43Zw1DZFb_yoWkCrXEga nrXF1fZrykur1rArZ3AF1fWr10kFnxXFs3Xr42qr4avFy7AwnrGr13A3Z8Jr4UWrZ0k3WD Wa4kWrWUA3y8XjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb48FF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26F4UJVW0owA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gc CE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E 2Ix0cI8IcVAFwI0_JrI_JrylYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJV W8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lc2xSY4AK67AK6r4f MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr 0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0E wIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJV W8JwCI42IY6xAIw20EY4v20xvaj40_Wr1j6rW3Jr1lIxAIcVC2z280aVAFwI0_Jr0_Gr1l IxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUj_WrJUUUU U== X-Originating-IP: [124.16.138.126] X-CM-SenderInfo: pmld2xxhqjqxpvfd2hldfou0/ X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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 --- 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 e05cee457471..c7fe5d86ae2e 100644 --- a/drivers/power/supply/wm8350_power.c +++ b/drivers/power/supply/wm8350_power.c @@ -456,6 +456,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.25.1