Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp668916pxb; Fri, 15 Apr 2022 08:30:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNf0cIbGg9clvnjGFTJpur+rn2hgM3Uw9DvTZXzifv094RYmlBwidw4nFhymFzUEID8rVD X-Received: by 2002:a63:4f0d:0:b0:399:5115:ff48 with SMTP id d13-20020a634f0d000000b003995115ff48mr6854145pgb.235.1650036651573; Fri, 15 Apr 2022 08:30:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650036651; cv=none; d=google.com; s=arc-20160816; b=DnE5Kfz9RHydaWLRea7nf3Ji11HH9Nfm7u7dLQnW/0bCGiKwz5Am87+X0Ma2fl7NSR W7MU6/2+1Eerhc7hZJnrKOAOd6EZRkKXdsck1jt6JO2JidWTWqukYpNRTyREnil/dO8X a6vBLXOhxsNISQU8zYuxgxPBjDuCkniqMbsq8MBelbFDczEDcaGCeFgrR/8Dqtjzfv3n A7U8dWubUtT7O5FeV+nrZL+C6Yw+0TqDsPb33yDiEA1rVT/yjhqxAxTXaGZ/YQFvVkDp cPPv2boGnkz51w2e8SfvXvD6XdcPVceg/WBIKVKTM5Eeoo92Uyoj2dEBNjQCLuQ5P0Fu i3VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-filter; bh=u2egjd0cbZ/+7i4mwfH3iDY+HaxkdcRPRiZQt6Gpkys=; b=ZNum2BIalgIkt1Mu+1ldqmPSQEbzvYIyxrm2PYG1XOuW+IkSGCi8qLo14jJ1c0JDNP 10U1om4KFjxEBP0gT2vFq2pgSBcAtJUGrWE+qM4wRYqSdnlDXFqnlyEfQoC//xc/adYQ We/Hu6FDsiLLorlxL/fdWc70KWebcQ1+LC1a9Cl6A+XKwxRUPEck7Iz3LpgBbqTk93d6 XSv3J6WfSOVd4aJYoVDjVKlEJ7Sg6hhxnIEZtPH0pubdDsU4dRMYJrP64mVjgn81CS7b vWk277OaRRAghvVqP1zCrrIxSreqfkn61X874VYRPn1J5VDOtCEvv0AGEEAGDndnU80f I5gg== 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 q15-20020a056a00088f00b005060d434c54si1802850pfj.354.2022.04.15.08.30.35; Fri, 15 Apr 2022 08:30:51 -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; 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 S238330AbiDNJbp (ORCPT + 99 others); Thu, 14 Apr 2022 05:31:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241762AbiDNJbj (ORCPT ); Thu, 14 Apr 2022 05:31:39 -0400 Received: from mxout03.lancloud.ru (mxout03.lancloud.ru [45.84.86.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED3365D5ED; Thu, 14 Apr 2022 02:29:12 -0700 (PDT) Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout03.lancloud.ru C51A620A19A5 Received: from LanCloud Received: from LanCloud Received: from LanCloud Subject: Re: [PATCH V2] clk: renesas: Fix memory leak of 'cpg' To: Haowen Bai , Geert Uytterhoeven , Michael Turquette , Stephen Boyd CC: , , References: <1649837953-10984-1-git-send-email-baihaowen@meizu.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <2ed01eb3-ff46-425c-75dc-81729a5c30a8@omp.ru> Date: Thu, 14 Apr 2022 12:29:08 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <1649837953-10984-1-git-send-email-baihaowen@meizu.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT01.lancloud.ru (fd00:f066::141) To LFEX1907.lancloud.ru (fd00:f066::207) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY 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 Hello! On 4/13/22 11:19 AM, Haowen Bai wrote: > Fix this issue by freeing the cpg when exiting the function in the > error/normal path. > > Signed-off-by: Haowen Bai > --- > V1->V2: free both cpg&clks. > > drivers/clk/renesas/clk-r8a73a4.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) 2 patches with the same name won't do -- you always need to include the chip name part of the file name in the subject (in this case r8a73a4). MBR, Sergey