Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2881162pxb; Mon, 18 Apr 2022 10:10:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzU+J+aVEzrko6HhxfkDY6pWjQOrwRjRWVDKychlen1koOnflimMnkKBWGjSyA8u02v2uxs X-Received: by 2002:a17:902:6bc3:b0:156:e4f:b014 with SMTP id m3-20020a1709026bc300b001560e4fb014mr11888371plt.17.1650301843209; Mon, 18 Apr 2022 10:10:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650301843; cv=none; d=google.com; s=arc-20160816; b=Df+q0maLWOQ5bU8dftcfGfJ519tL7VJ7PRArDEhSo5mrS1t99ehR11g5wlJ79YpBHH HbYkzBQiEv50tAJjIAB9qlL7M904w7ardIpwqCTxLx4lP0rX6KE74V7kFOLf+L1doMeQ I3Qbz70q+6AWFWvS73yL6vn1prE1a8tVelMjA/d0FDXgEa/db9F7CWTrQzRrS3tLPuKw 8sWSKf2v9k3n5Ev901j/ZcaYOhP7XhTfKTo+AIQU292EgEFgpN12oSAX6b3RcbjVW6h7 dII3yv42F0sbY3Rl2R0CTjEfA0anzyAULUKK5uLpRiPuucNhky1qDrOq1O5dmJUXIvoW EA/w== 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=Jgpo3rT37L9nCyBaX4DHJ3cV/P84YGHAnRcn4vsOtTc=; b=r/4A4ii1VZkhQ/oHXbzLTavXzmPTjCvH4eG2jDGo6D7zA+2u7gK27dDZ7kjTUkQLDF ClI7ivt/XAAUfl723/0XIAXVsOZMe+Am92EldZrqI92LtvjCZx8Uy3gSu/J5XW0YYTIx v3Ak7XoGDzbDLTa0BUkaVL80LkjrUPSo4r3SFPQ09DALcaCM1Yp7uGiOh6gzknAo8V5U mqqWH33wIrm38yH9PnLKDeOYT/JqbiO8vWL7aCExu1watiY1S3X8cuWNHwdRa/bbqFgv /Q2NFSMa5aqSL7c2yeH8p7zGc1q0mAuCF5N0wrVtbXxA0QatGb/W2a/iholsKbGWNafI Rp2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LfCvYRME; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h8-20020a170902f54800b00158a978a3b5si9896617plf.14.2022.04.18.10.10.16; Mon, 18 Apr 2022 10:10:43 -0700 (PDT) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LfCvYRME; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242616AbiDRNqX (ORCPT + 99 others); Mon, 18 Apr 2022 09:46:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241740AbiDRN06 (ORCPT ); Mon, 18 Apr 2022 09:26:58 -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 5C56A3E0E8; Mon, 18 Apr 2022 05:53:08 -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 4346BB80EC4; Mon, 18 Apr 2022 12:53:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89FA0C385A1; Mon, 18 Apr 2022 12:53:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650286385; bh=UzMnFVffMmcsXMlUXyH5IAYvyjZH2koP31kGk3TknZc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LfCvYRMEQzYL0ra+WYSPa5teUAy9HjFzdRnJpGubeFcXjmYK4yR2s8U2AXfS2B3ga R4xjTw+pzjAKhmHIUFZ0r3ub9FLFU4+4b/IVWXh/CSHSCnNnZ4k6vpCY9t7Jqduw7w 4ZoGWaLDVdPhRqJgx2q3AbUEC2fNK2cpjPnxpP50= 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 4.14 117/284] power: supply: wm8350-power: Add missing free in free_charger_irq Date: Mon, 18 Apr 2022 14:11:38 +0200 Message-Id: <20220418121214.384872915@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121210.689577360@linuxfoundation.org> References: <20220418121210.689577360@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=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 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 c2a62e6568c6..5d025fcd8f3f 100644 --- a/drivers/power/supply/wm8350_power.c +++ b/drivers/power/supply/wm8350_power.c @@ -526,6 +526,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