Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4490169rwb; Tue, 6 Sep 2022 08:13:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR7COCYkc4QFAsIs3muz2CmPiMPhdytjtjW85xTqqlClClGN6VE7qzuFGRTglPZPZGW7a13z X-Received: by 2002:a05:6402:1446:b0:44e:ec98:3e11 with SMTP id d6-20020a056402144600b0044eec983e11mr1302857edx.90.1662477192773; Tue, 06 Sep 2022 08:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662477192; cv=none; d=google.com; s=arc-20160816; b=PlatRJ68qNgUy2Cjw01bCYS8fEP998HLKOtcNt7VGvSE1XDpXW/fv720Cuh6AE0lOH 6pL0JBneLVTrv03uTNQwO0F+WLyujXJPi3Y9+wRPq0Btp2l4jJScVTa6+GdXxZS6U713 NZX6/6zFHw9wmp85WCYzz282sjvTyLWt9JZtO+VR2r420rDpyETjL8DpGRtFxp2euGPn cBqwocScXS9koUogBWhj7/n5n7sVduwKEUHDqQ0uerfwnDtBSomgk95R7mt79qqpLGBi veiFxWgOEtI7V7TrJRqCCFY5E8xSFmczhZllE96jk4Zn4Y7GfvAJwd8S4OMh9ljB6IwN Mb4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=yPjehNor5ABNORlffBCH2K5wVerHEdKJcubH0Dn1+EA=; b=rAvCvauWGUhalBX/oAh8lMzfHPnPibvdHHp2R0+qSdxaRyKonZ3yhT7uYf81xYkB78 kDh5komCRBGO4glRGYKO1bZJwozPtLJkYU+CHAVzFW13dQXCQiJ63p/iEpyqwqNyEA0u bkLnhx3J1Z+SLG0CDxD3MRFfkBfdcq8Hq2SDi+MnKaKkS+47X3gRFrEDfdsEVtu20p1K 4iSqzEFaANprdg44xB4YCE5lbbh/Lx3AL+itfqLYmao+8YZGmhC+BR0nh02JiGIZQNn5 K36atsSfYIKaswAArtkJLc/P8xAB1JBw3OUKkfvFnXATiLTG6AF0av14GJTcWd6bJ0Qp THgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xebnjNgb; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr4-20020a170907720400b00730aa3e3843si11013525ejc.131.2022.09.06.08.12.47; Tue, 06 Sep 2022 08:13:12 -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=@linuxfoundation.org header.s=korg header.b=xebnjNgb; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241058AbiIFOLO (ORCPT + 99 others); Tue, 6 Sep 2022 10:11:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241275AbiIFOJV (ORCPT ); Tue, 6 Sep 2022 10:09:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E223586B55; Tue, 6 Sep 2022 06:46:39 -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 44A946154A; Tue, 6 Sep 2022 13:45:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51BEAC433D7; Tue, 6 Sep 2022 13:45:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662471919; bh=WsIXHhwZKqW9vpxERr/6UpLNcCO2QaZy90B67zbXNXM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xebnjNgbpVS84yqqF14plF4TKEcLQtvsVXBHDysxKjSbOQMz1+CBG3wAkm3u9DZgQ y4v5Cr02l+6I1ZC6iZgXrWezWcMrLXJCkORta64GM54vJ9PBOjtJuyJJ1YLOgdEH5o eNJMmA1IN3MxTebDHMnh7vhPEr6b3tVFWQBCo0k4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tony Lindgren , Stephen Boyd , Sasha Levin Subject: [PATCH 5.19 085/155] clk: ti: Fix missing of_node_get() ti_find_clock_provider() Date: Tue, 6 Sep 2022 15:30:33 +0200 Message-Id: <20220906132833.020109251@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220906132829.417117002@linuxfoundation.org> References: <20220906132829.417117002@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 From: Tony Lindgren [ Upstream commit 26f2da0d2f823dc7180b0505d46318f64d1e0a7a ] For ti_find_clock_provider() we want to return the np with refcount incremented. However we are missing of_node_get() for the clock-output-names case that causes refcount warnings. Fixes: 51f661ef9a10 ("clk: ti: Add ti_find_clock_provider() to use clock-output-names") Signed-off-by: Tony Lindgren Link: https://lore.kernel.org/r/20220621091118.33930-1-tony@atomide.com Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/ti/clk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/ti/clk.c b/drivers/clk/ti/clk.c index 3463579220b51..121d8610beb15 100644 --- a/drivers/clk/ti/clk.c +++ b/drivers/clk/ti/clk.c @@ -143,6 +143,7 @@ static struct device_node *ti_find_clock_provider(struct device_node *from, continue; if (!strncmp(n, tmp, strlen(tmp))) { + of_node_get(np); found = true; break; } -- 2.35.1