Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1122599rwi; Wed, 19 Oct 2022 07:02:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7GTct2Rx/EIifzm6FSecrV5WKOm7pPPROJ98ubV6wmKhexgwJBsixiMDrjB20UCTOYwKPE X-Received: by 2002:a17:907:2c4b:b0:78d:8621:c113 with SMTP id hf11-20020a1709072c4b00b0078d8621c113mr6573733ejc.364.1666188126947; Wed, 19 Oct 2022 07:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666188126; cv=none; d=google.com; s=arc-20160816; b=WvzZDkClnB1oTiI3N9B7LVlKRufLygmBfIQ8+ckN6sCaBEXix5BBFCRLz1a2eWrLv7 E6igMzkaTBkYoDj648f6tO8g4D5di492ZBEh6RC9pehT/9bzHbWMWTMrSqhnYyH80NTE 5ZYL93YVm0qidyI8fFbj4Kq5WQVEp+CSgxNFVDUWIpM8j3Ig3q1nCLUMDqxmQI7o7e6M +pP0jDbDDzwyOapUIHeqnE5urYDDQXeBuURbRCcHav4dsR5QNbXfdgyFTpna7qfkm0gB HobbpqEEH3SMjPkfwgzhK6bRy6ionNlCCT/t/B2QMwVZMQ2rUDhHeNhMLH6ZX8BVEUg8 N2Sg== 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=ghhPgWhpB5qzyNp92A5X2vZG2E23PEABcHj3qWxEJ0M=; b=ahZbDe+ioCR90SU48aK7kpj09A4hKJn5kY2IwOpDrgzJIKZjohOrgfuGcMN+MzHXcz AY2lCqM7TYEsIAkcskiX4p5HDIuiPK05r2aPGD/bKjzF99b2/h62JvlcnlasLXRlgLfz 0fvZPkRO8fLHvqRxUWp0/i6dnde9Z5eGp0ymAmxB3CB8Kw8OaWngrDQZXJ0ZGBrTNRBI 6PACgSKx6Rylby17m1DhGPbsGgKMoAx4BnIVlKrf0xqrYBIkRGuHJjSQC+Rcf4If03As 7jwG43qW8Dynht73/76pWivY3nBazzlWn2QLyF5ySwZwa59Vehxiivbz9+trrj4d81yX 7Z/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DtxdAufg; 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 rn25-20020a170906d93900b0076f061ffab4si11022163ejb.51.2022.10.19.07.01.32; Wed, 19 Oct 2022 07:02:06 -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=DtxdAufg; 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 S233591AbiJSNsK (ORCPT + 99 others); Wed, 19 Oct 2022 09:48:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233095AbiJSNqp (ORCPT ); Wed, 19 Oct 2022 09:46:45 -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 08CECDDE; Wed, 19 Oct 2022 06:32:17 -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 02F59B82437; Wed, 19 Oct 2022 08:57:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62CE1C433C1; Wed, 19 Oct 2022 08:57:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666169876; bh=pW7ZV2htvWXgiyX1QUvqOjs93tLozdPizpyCV7uPREA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DtxdAufgr86HGQERGGCMVFZB7gN/FvrkQ2YoGVGrUGovQKLjoMznn2eLnflyCNwjt xAjYKcGtcSui0nQw+NK0Xe5Hl58Qb7MCfk+hM7vJocO1Qle7lYOZLNX24Z0PeBI3Uu u+Q09MWYxjyadqzEcAT8PDWo2GaWBNqMKskb6SRs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Liang He , Thierry Reding , Sasha Levin Subject: [PATCH 6.0 441/862] soc/tegra: fuse: Add missing of_node_put() in tegra_init_fuse() Date: Wed, 19 Oct 2022 10:28:48 +0200 Message-Id: <20221019083309.480396516@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@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.4 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 From: Liang He [ Upstream commit e941712cccab8a96f03b5d3274159c1ed338efee ] In this function, of_find_matching_node() will return a node pointer with refcount incremented. We should use of_node_put() when the "np" pointer is not used anymore. Signed-off-by: Liang He Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/soc/tegra/fuse/fuse-tegra.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/soc/tegra/fuse/fuse-tegra.c +++ b/drivers/soc/tegra/fuse/fuse-tegra.c @@ -568,6 +568,7 @@ static int __init tegra_init_fuse(void) np = of_find_matching_node(NULL, car_match); if (np) { void __iomem *base = of_iomap(np, 0); + of_node_put(np); if (base) { tegra_enable_fuse_clk(base); iounmap(base);