Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3015646rwa; Mon, 22 Aug 2022 19:17:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR5aVMeLvy7ah6A0aHAWwBZtrOjQcoTRqaXa4M1N71bQsaWrPyPcAtl1qhUtleMRorzfWFRP X-Received: by 2002:a63:e054:0:b0:41d:6628:10b3 with SMTP id n20-20020a63e054000000b0041d662810b3mr18672074pgj.506.1661221029210; Mon, 22 Aug 2022 19:17:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661221029; cv=none; d=google.com; s=arc-20160816; b=RQDALET0F9lKIF8j1PZNTld0jO2nUsj853VQ3D4ui7jzGANcr1GDH71UZSI8aP2qht 3uWwF2Ak4kMIuj0eYOGuY1vrfbn5rjou0lKhTy22dPtr9lHBE0ggUqxm8CnQZ5s71qfc zvbkId7dBGDe4jTm8X2/hgN9nUG27E4ZepWu9+SqrfPFpYNu29vno06EPce/+8FvumAl LnwQKSIAMy92gjf/ll944fAMtN/cc1aiE3ybAWfNqoySmwP40KVCQjp0x0+Upwx5TJJT maD/lo6Ynpc63TnVLTUNdsg4plHgIiO9Dfm1yNJcweBtJTG5XcSahKZoaFxPvtbQUzh3 sPLQ== 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=oSh5FfNfwL6/Rv0w4q9r+OWZqkJmP31snhtT+GznY8k=; b=Imetp0PNWAFWpQN67/qvllkVuccVG2TGCVHXTv8+aeOlAVszryOetMzGXaS8W6UZEX PAbHHcF259S+bRs3DrE0erHgmWv9PAkQlOUvF2/yNcoA9OYlInpTDON3kXm8dIA2y3JY iAoxOgsJzz8oMj6I4r5UHfq6tTO4jTZ5yPFKPiubtc+5yY+vuKVatAXHearvulJISEEv 45NcEV4tq8iaKKoDC+aZ8MKYridhhMJEm+RWDlexd3aQh1kpBOwNnmqGami6gp4QhLSM Iq84qEU1rUR7zVyPK8Hno6CKR9Jst+WsIns6GV0mLqZoKsBRB54cmB6yaE+VSG/6akMu VqFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="T/jy4xAy"; 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 k199-20020a6284d0000000b005360fd17809si11936577pfd.63.2022.08.22.19.16.58; Mon, 22 Aug 2022 19:17:09 -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=@kernel.org header.s=k20201202 header.b="T/jy4xAy"; 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 S233976AbiHWCFe (ORCPT + 99 others); Mon, 22 Aug 2022 22:05:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235768AbiHWCFX (ORCPT ); Mon, 22 Aug 2022 22:05:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9239EF590; Mon, 22 Aug 2022 19:05:22 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 296E460C1E; Tue, 23 Aug 2022 02:05:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B832C433D6; Tue, 23 Aug 2022 02:05:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661220321; bh=oSh5FfNfwL6/Rv0w4q9r+OWZqkJmP31snhtT+GznY8k=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=T/jy4xAy41RdRJX6mIHpwgbY69DhvMxwHpmwdobKmqNVTFcJtXtBuy3RF1jnL88VQ 4kPx4Ndwl5QVKmSwKzpWoEZLdYlB5+GNibJ24gPJcDnvc4DXkT/aVorWQUKXuEnQaD Mtt8GfUjLla91gyuzzqNXCTm1b1HD0uvoVDyyg61r4ww0SZIgk0v87KH5MvbDzy3Ei n2NiKIvFYV6ns+CeaMuWEuanFV/3JEyXCVFtDccZJxLxTI+w71iXN3+XK/sWcxyp5Y AMp4V3/PMxolJzVbQOLUF7xHDbDD3hhSOkMNUZmfSoRMUuSSXVtxHGHYoh9haH5Jlt 4viFBKUFeG84w== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220523142608.65074-1-linmq006@gmail.com> References: <20220523142608.65074-1-linmq006@gmail.com> Subject: Re: [PATCH] clk: tegra: Fix refcount leak in tegra210_clock_init From: Stephen Boyd Cc: linmq006@gmail.com To: Jonathan Hunter , Miaoqian Lin , Michael Turquette , Peter De Schrijver , Prashant Gaikwad , Rhyland Klein , Thierry Reding , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Date: Mon, 22 Aug 2022 19:05:19 -0700 User-Agent: alot/0.10 Message-Id: <20220823020521.7B832C433D6@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,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 Quoting Miaoqian Lin (2022-05-23 07:26:08) > of_find_matching_node() returns a node pointer with refcount > incremented, we should use of_node_put() on it when not need anymore. > Add missing of_node_put() to avoid refcount leak. >=20 > Fixes: 6b301a059eb2 ("clk: tegra: Add support for Tegra210 clocks") > Signed-off-by: Miaoqian Lin > --- Applied to clk-next