Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3015788rwa; Mon, 22 Aug 2022 19:17:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Yk7p/6jZYqkCOLfRsAg/RxTCLCyyWQBdOuWz3erUI3HZ1mOKf2vT37yaZxXjtDlCnxU8W X-Received: by 2002:a17:907:75cd:b0:73d:8d05:1b35 with SMTP id jl13-20020a17090775cd00b0073d8d051b35mr3094741ejc.638.1661221043047; Mon, 22 Aug 2022 19:17:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661221043; cv=none; d=google.com; s=arc-20160816; b=0T+NvrR95OdICe4nhbaObDDEV7AhmL2dm3B34fnzdy/mt4HVH9QzJa0edWg8yRoKxJ LBib2GvZxHVnrj9TyzIuO5hyS7+yyD0I5YNvB4UP/05yVgqyVi45JasfCqQuObt4JQKz MkbYEfksMREKgieHoEtMsxr8HpLnZrRHGX0qvU1wfoxOFx6u+9UkFY1zMtvSQtm/a0Sk GnEdWcPUyhyxXPnPJJB2NVAA10XU62Zv2iSJ01Njbgy9w4i5csRSX+KXvOQyxN7Pggzc Ri5117kOAp1DdZYOfMl/GaWWOgdWAixe2XRRduiKBPZ/U/mU1J9NJvC2u1Y4ionL95in w+ug== 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=JdnZcPha0akKL8YKef29IKZECmMqqhF6UeNdPF+LQ3k=; b=Xie3gf91zeY3VcP5wswD8tDBzuevXSZr1yC3y1LCnSwKHWzRkll8ZeYu4Fd6qTu/0O cM32CzuIfE+avoGtMz3QDwPO6IUSguAW4UxS7MpxOa2dhS0Q5zsdIJ1UpEZD+wOgHK2A EdHqN+ry6u02HeLg5g2oyeNyEiGa1rcGLuOVaJl4MX63ZG2gjYrst9bIzuFEWKAIVK9m JN0wzkWLAiQ/TM6L3C7SUZW9MRLsytrX8eo9XqKIhuDainHBBuJYBYwC44gMT6wVjLkW hFSTh0eHPwM9WjsTkzye9L7MCh8Qa7PoOuCsztCXRgxqaFuL8nW+sA3QTOQrxX+C1lPi feog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ThbmUS5u; 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 ho13-20020a1709070e8d00b00730e5c46ed9si12325484ejc.15.2022.08.22.19.16.57; Mon, 22 Aug 2022 19:17:23 -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=ThbmUS5u; 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 S239523AbiHWCGF (ORCPT + 99 others); Mon, 22 Aug 2022 22:06:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235768AbiHWCGD (ORCPT ); Mon, 22 Aug 2022 22:06:03 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C97671055C; Mon, 22 Aug 2022 19:06:02 -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 ams.source.kernel.org (Postfix) with ESMTPS id 84302B816BF; Tue, 23 Aug 2022 02:06:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 281CDC433D6; Tue, 23 Aug 2022 02:06:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661220360; bh=JdnZcPha0akKL8YKef29IKZECmMqqhF6UeNdPF+LQ3k=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=ThbmUS5uig3iJo83WUZSQwXT7d6Smx+7dpRbc288fvGTgC449J2NPRYLx8wTvn0f6 zHoT8vWqghuzz+zwPSuvSVU+CncY2v1OPAjryvnruuD86sB973BTGTRN4yOZ1m/9Nw ISRyGGxVYthGdUsMLGzswRynBHfvkO/Wv9ooGBwkpHCsFAA2VmaKkfJh8ji61el2P4 2Pedb72Ys7uyRr4K6/VqbNTMiU0teG9yMb+Ms3vpVtrh+R6mXdgb9ump4LQVhzQw3+ XaxkckPGg5B2DYt85ZXcy3KnkqjewK3xdLm9ESbGVy1p3APS4F86GRql5/gpSJ6QrY in0kdnI4k+6vA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220523143834.7587-1-linmq006@gmail.com> References: <20220523143834.7587-1-linmq006@gmail.com> Subject: Re: [PATCH] clk: tegra: Fix refcount leak in tegra114_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:05:58 -0700 User-Agent: alot/0.10 Message-Id: <20220823020600.281CDC433D6@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:38:34) > 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: 2cb5efefd6f7 ("clk: tegra: Implement clocks for Tegra114") > Signed-off-by: Miaoqian Lin > --- Applied to clk-next