Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1491914pxb; Thu, 14 Apr 2022 07:20:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTzon9Xr3F/DHeoWngRiJII7deCRSQEs+b8TWPsR2TNl3aIkVmhD/KaaBY2roA8RZA3Y3F X-Received: by 2002:a62:2504:0:b0:505:7693:b48e with SMTP id l4-20020a622504000000b005057693b48emr4151230pfl.4.1649946040756; Thu, 14 Apr 2022 07:20:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649946040; cv=none; d=google.com; s=arc-20160816; b=S8rSi/KuFnYX6WeVizgwWBEhMQnBusOUgufr677GqtqtRAhgKWfYpLU1YQSe9ZlpI6 Q/8XGZ8UkXZ3Cxal1Q1bqs7F39C3CWFsZbtAA3PE9iyCRvuOK5shZ8LW1Ey1cembLBMy wdBF0FQJS103jLGOYMPJX1y5prFXZG1Lq349GWM2IxgWhs2UyD79Ya9ouDaibuWLNHGM BphJb9ft28Uc1zf2dabNwWxI1as7TuPxcR2l/MMPJFHcF5NWPbifUoKoFypMF8oqJb1d 8VwKUXlwTqjCd4AYmARQDJkBOZlZsyxNhR/3ma5RxyZRFaF5G55FFUuKm6mRurPu/7J9 bOwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=wT+WD+e2d8eELH39rVnQiOaRvZ4T5k/ulSuMocFHoO0=; b=c/+scrR/XyYzEO2TICKtwleP9fJy1I4SMfVQcmJkMWTBg9nR6yuIHzuG1+OaM1v+Og heikJTl6e0jxr9+K0kuXMEhIgBgaw6gHU3NOIxS7abeiCB7CAz4Pl4gTrqWGlO54PsDy XxVsfSM94qUZNdXPrQyNq92aEPE0jj/f03egNR+txm3W5g3slr5f2N3LL3RTcCkSmIDe W9uGRHkGcpaYyltAPF/fKPySPAPFkQapLTmDPfXALHJTXNWoFzuE5IJfVUG/aVlFTDm1 EUoQrwk3VWYKGR2xgmLpRMWjgMHX2tjIhC8/OJZ2NJhnfgvnLOA2br777dy+vWFGhJl3 o5Og== 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 oo17-20020a17090b1c9100b001cabe55b466si2012234pjb.30.2022.04.14.07.20.11; Thu, 14 Apr 2022 07:20:40 -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 S241831AbiDNJff (ORCPT + 99 others); Thu, 14 Apr 2022 05:35:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241821AbiDNJfd (ORCPT ); Thu, 14 Apr 2022 05:35:33 -0400 Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A81B70CFE; Thu, 14 Apr 2022 02:33:09 -0700 (PDT) Received: by mail-qv1-f49.google.com with SMTP id x20so3561396qvl.10; Thu, 14 Apr 2022 02:33:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wT+WD+e2d8eELH39rVnQiOaRvZ4T5k/ulSuMocFHoO0=; b=WCb9CrYNMnvknLjmJwx8d833KEzkGJe4PnAHE7TCjTDSf0aCHRfms6+riyfWTZ9IkR W7RjgrAfJb4s0g/8aFg9owovC6epCc5kWjxfMxyP+HXlx6sDS8T+PmNojmA0Y6vlKmxQ Q+Oe89ItNITf0JTsUV2eUuWQ1eCmzK6mfzR7KBWOuya072kjp1L9RrBp0Ol0h57YgmwK m6HFX8bgOWCHhnBMa9MO6mU/ZIcYMSpGaLe4yc6yOy/UI1mB0idMewg+A5i8DhyeSrmW aIvXc7IFfmXEjSDxNn8efhH5PUFf5lHpTlVCMgjyeAWlRsqI9y1gKkQPlJiasL0PXAJh YYNA== X-Gm-Message-State: AOAM533IotIdoaij04ZjaeS+PXsoAJjhc74td0kuQAJbdMPUCQnmJ0kl w8YfLu9VFDmyJEkBprqP+42wL1+o13L26g== X-Received: by 2002:a05:6214:20e9:b0:441:527f:dffa with SMTP id 9-20020a05621420e900b00441527fdffamr2507246qvk.34.1649928787542; Thu, 14 Apr 2022 02:33:07 -0700 (PDT) Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com. [209.85.128.177]) by smtp.gmail.com with ESMTPSA id 193-20020a3703ca000000b0069bf950dd20sm740384qkd.43.2022.04.14.02.33.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Apr 2022 02:33:07 -0700 (PDT) Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-2ebebe631ccso49265497b3.4; Thu, 14 Apr 2022 02:33:06 -0700 (PDT) X-Received: by 2002:a81:4782:0:b0:2eb:1cb1:5441 with SMTP id u124-20020a814782000000b002eb1cb15441mr1147758ywa.479.1649928786553; Thu, 14 Apr 2022 02:33:06 -0700 (PDT) MIME-Version: 1.0 References: <1649837953-10984-1-git-send-email-baihaowen@meizu.com> <2ed01eb3-ff46-425c-75dc-81729a5c30a8@omp.ru> In-Reply-To: <2ed01eb3-ff46-425c-75dc-81729a5c30a8@omp.ru> From: Geert Uytterhoeven Date: Thu, 14 Apr 2022 11:32:55 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V2] clk: renesas: Fix memory leak of 'cpg' To: Sergey Shtylyov Cc: Haowen Bai , Michael Turquette , Stephen Boyd , Linux-Renesas , linux-clk , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, 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 Hi Sergei, On Thu, Apr 14, 2022 at 11:29 AM Sergey Shtylyov wrote: > 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). Oh, they were for multiple drivers? I hadn't even noticed , as Gmail collapsed them all into the same thread... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds