Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1919639rwb; Thu, 8 Dec 2022 17:30:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf7mBd+0daGk3ctiUh7uogDsboIJXoBC6ZPhAjNIahs4UmcLxhMLxNFFyyYyv1/oIeMEjXGt X-Received: by 2002:a05:6a20:a001:b0:9d:efbf:48e3 with SMTP id p1-20020a056a20a00100b0009defbf48e3mr6150588pzj.39.1670549436732; Thu, 08 Dec 2022 17:30:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670549436; cv=none; d=google.com; s=arc-20160816; b=os3WtsOj28uFCxtlZ5VqyUm3QgE3aaMJGqd+sQh1TmDBXmVnE0hF/v2BuXfNAUOt0+ wtH9jN8N0OuWV/f9bevQu/4EHYTpwOr1X1t6q+d3J0uXWscYtKTm7Ly6xteskIhXQNNb hBZt+220wMS0PHcJxxUH6hGjLDuIQtSSBlcl2ptmesZxGqlaZ9ktxJogl6ko/wXE9LjH aqaBmNEh6sjNPe/QClNNWdbiHFLiLZ9EK9Y1cyB1WYuuFShIAms/1guSn3vXhQ9BC1RS uWpf2C6dhYcNRG1amhaw4GLXfEjy8VNGaVgtOz8zdafqsbdXDD5jzVx4gkTTpiEyNkBe LDIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=CI61NyzwcCkls1g53GLenK1urd7NEQsO+Z2Miu0mupA=; b=T0QFYM1Nt2pc2slXtGxxjXXpMJi7GiapN4f8QQG4JJjTVUucSbq4W+pi49+C9h6cRL R1AGSVCfLcag7mP1/Ai9Yx1q7GimUqtlSPxICI/cZAA7tr22uJK6CRf/wLBMlyZN6qg3 YPDm+F447bCpNw/2JmO5/+4XrwwnQLv8TBhWRzZ/DFtBHUz0tT1GDBxt+HfpyPVYioBm c4If6BH1bNH1VB1EMjbt4Xi0WhPOz4a8tPhtLAe/oqb46NwuuMw+PX+OI0nZTwD/2Zv/ jOXYRYmbMwj2AzcdjMWcqbj8czK9HpFlN/nWkuTL2qUgJoYvs+UcY6YNotHajAjpVXbc QHnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="t/u/EGa+"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 140-20020a630192000000b00477b29bb007si86787pgb.854.2022.12.08.17.30.25; Thu, 08 Dec 2022 17:30: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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="t/u/EGa+"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229746AbiLIBQu (ORCPT + 74 others); Thu, 8 Dec 2022 20:16:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbiLIBQs (ORCPT ); Thu, 8 Dec 2022 20:16:48 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33FB0D2C0; Thu, 8 Dec 2022 17:16:48 -0800 (PST) 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 D9FB4B82666; Fri, 9 Dec 2022 01:16:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 870F5C433EF; Fri, 9 Dec 2022 01:16:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670548605; bh=CI61NyzwcCkls1g53GLenK1urd7NEQsO+Z2Miu0mupA=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=t/u/EGa+Mbasaxz7el86ZubkX9wTeBV7sAOFPOkR+3YbEUb0XxmKTPs2yPshQq7Z2 QL8GyyGl4ZXg7Cmgq3lNRYQgN4gqgyTbMAgEiqmUctkeVD4gVysh7IASPVuypEPF6b 3rQITCgDRf50/0vq0PJJ05e+XJgIDFe0f6zvyVBJIkVcW3OOcGdALO7PxpEqmHUtvz /Y0fEEUFl8oDO0sHFRgWPL8vY1GJO5FYxySmzyv+RCgQrYathU2QFxH7Gzl4mjCsGU PNim3fTcuDIDDEkzU7BTBDNJ86Xmg6k1a64YCsZa0QKxre96OhKvxvOZDmZGauykBI NRoaq0fPH1WsA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20221123031622.63171-1-xiujianfeng@huawei.com> References: <20221123031622.63171-1-xiujianfeng@huawei.com> Subject: Re: [PATCH] clk: socfpga: Fix memory leak in socfpga_gate_init() From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org To: Xiu Jianfeng , dinguyen@kernel.org, mturquette@baylibre.com Date: Thu, 08 Dec 2022 17:16:43 -0800 User-Agent: alot/0.10 Message-Id: <20221209011645.870F5C433EF@smtp.kernel.org> X-Spam-Status: No, score=-7.1 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 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 Quoting Xiu Jianfeng (2022-11-22 19:16:22) > Free @socfpga_clk and @ops on the error path to avoid memory leak issue. >=20 > Fixes: a30a67be7b6e ("clk: socfpga: Don't have get_parent for single pare= nt ops") > Signed-off-by: Xiu Jianfeng > --- Applied to clk-next