From patchwork Wed Oct 19 08:28:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 5522 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp337162wrs; Wed, 19 Oct 2022 06:48:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM52Mx+95WTg55XjGfD0dBsgWkBCvXF0uxh2xI45EndGKODISeF5Saaut8eBlK0niTm6Po3y X-Received: by 2002:a05:6a00:1410:b0:528:5a5a:d846 with SMTP id l16-20020a056a00141000b005285a5ad846mr8867983pfu.9.1666187318406; Wed, 19 Oct 2022 06:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666187318; cv=none; d=google.com; s=arc-20160816; b=bjXSYXF+rwfVTIOwh7xykZfHrP9xROO4B7130tWbsTh7CRGNT1CxrN1qjygNuUoTaN Ddj0aACOx9LBl2Rp/zhskUwGQMyNVcUiVwvra1TrbohW8ASTmQBtc/2WIj6tJUaHWBb7 Gn6NFeXYbHHkgPSsok1Ate79Pxv2Q40ne6gNo/Q89Q5HoSET/ukqJuHQ2fHfXF7FxHCD DO8R3jfRgxfszFIWgEVnxbplrwL2rJun87ceh3BCZl3o+jjBl2tZVv30oF4admUWi3WU 6M/YVANM1GLbS7QdFfxyx4D15kPx6ngU03ehder0JJwI0SlIYvcM2/MWQMsYBgF4JRgq vrCg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b1-20020a170903228100b00176a0d8780csi22807774plh.285.2022.10.19.06.48.25; Wed, 19 Oct 2022 06:48:38 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747124033817829963?= X-GMAIL-MSGID: =?utf-8?q?1747124033817829963?= 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);