Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3015493rwa; Mon, 22 Aug 2022 19:16:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ueAdjhJzYTp/Sx9PxdlJ5K0JOVU3qUJSNQ3Y4ofV2wlY0JqMKkdB8ex5nnKqRdJBItelz X-Received: by 2002:a63:6a05:0:b0:42a:3b5d:8084 with SMTP id f5-20020a636a05000000b0042a3b5d8084mr15722416pgc.281.1661221012428; Mon, 22 Aug 2022 19:16:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661221012; cv=none; d=google.com; s=arc-20160816; b=Mlw3qTZY4BuSCZWjDzom1T5ikii8RimwHH9GI3kG1X+cO0dAikv6sDIlDHqkbwrwLO JgFVn63Ft/cb8qblQYwZhb0CFgwS3yaNFqtqjJTNJuhNbo91IdkEbtr1rzdcM4Q7xXUL cp2d8gW6KpwjEsaun9SKwSxc/Zxi/3Uo2GxeJuo48c+CLtvKVWgrLDy7rL9TxPfmZ3bo IPEGfPKecLBYyWRyyqbOZbNe08/kikvnlRaDI0CgfGJNWrQsKtI1X4jWlxwddKhJ7v0K zXcwyycdogTJnAak6R3mNlzNrnIno3OUChQciWjkNwP3me4SX3c3ttNHF1Kj+C77US1w +r2Q== 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=OPYilaXNqSN66IcN7hBTc8VxRASQY+HVHTakl3BRzCo=; b=zNyz13OUDCYhtSI4r4Age5g/ho1UmtpV4/HqSi3ODDcVm8hxIh3tXvfwhwIhw/GJ6J 5/IifL7rr1MGayXwzbdYQG+VzidUdNRbq7jBiYGbPi0bYhrW6giG0+1ytEiZnwk/AXKg 8pqLrkyREdC2EqB0Sl/vK6vbfUkKqy8OufHrHuzmRRR08L+ZSyG0eSQuVSR4AVqcxkg8 Ycnavnvc8J/eOlPE8F4FaYRVp6x5R16n8qujdV9odt15p5E3YSZboNlaCgpSaZ6kCvhN QUE95XKKjplionsdeeZDIH6f3F0CIrCTtyqGCVYhxJKQKjJxpN5NFf5aHxPwxClimp2Z gvuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sC4WBXXC; 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 r136-20020a632b8e000000b0042a00292790si12616632pgr.242.2022.08.22.19.16.41; Mon, 22 Aug 2022 19:16:52 -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=sC4WBXXC; 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 S239479AbiHWCGa (ORCPT + 99 others); Mon, 22 Aug 2022 22:06:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235768AbiHWCG2 (ORCPT ); Mon, 22 Aug 2022 22:06:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F14F412AF5; Mon, 22 Aug 2022 19:06:27 -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 8DB0161224; Tue, 23 Aug 2022 02:06:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC695C433D6; Tue, 23 Aug 2022 02:06:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661220386; bh=OPYilaXNqSN66IcN7hBTc8VxRASQY+HVHTakl3BRzCo=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=sC4WBXXCwDxzgWtrnY8VBywxsnDh2qYgGCegZ/IK1zcQ/jAhv+1ARPy8zz+sLAQH+ S+kMginYgTtkiNC3QtnncpFWhhhlQNQh9gQimhCprRiUKLggqGZjrw/vkS7oarTJcy P5aRFh7M5NZ0LKxUOaz1KRk1i5KB8CsFlCiMJiYukASIzYsu66GkFJPnhTMaN0wotu Cs5Jq76DkCmC5otm1R1LxPnTf359ozK1g/W4i0wy5heSkgf/oeH0B298PIM0duJXZD Zge8ndwccA74rUHPvFa/0FDYGAhNMKsOVFeY7uTgNXvhjQzH7BJ2eVYnpbOpscvxFf XHFfylMOUrsGg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220523152811.19692-1-linmq006@gmail.com> References: <20220523152811.19692-1-linmq006@gmail.com> Subject: Re: [PATCH] clk: tegra20: Fix refcount leak in tegra20_clock_init From: Stephen Boyd Cc: linmq006@gmail.com To: Jonathan Hunter , Miaoqian Lin , Michael Turquette , Mike Turquette , Peter De Schrijver , Prashant Gaikwad , Stephen Warren , Thierry Reding , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Date: Mon, 22 Aug 2022 19:06:25 -0700 User-Agent: alot/0.10 Message-Id: <20220823020626.DC695C433D6@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 08:28:11) > 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: 37c26a906527 ("clk: tegra: add clock support for Tegra20") > Signed-off-by: Miaoqian Lin > --- Applied to clk-next