Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp685545pxb; Tue, 5 Apr 2022 18:44:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO535eF8M8nBAkrlBpljLOFBOwc5dQWUY978yR8gyykDnX5PX2GydRWnO+kw+qor5eM+3I X-Received: by 2002:a17:906:58c7:b0:6da:955b:d300 with SMTP id e7-20020a17090658c700b006da955bd300mr6020652ejs.481.1649209388100; Tue, 05 Apr 2022 18:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649209388; cv=none; d=google.com; s=arc-20160816; b=ficaSwyLHtN55zqujnn22Vc/3Tdsp09Lf+PZCh2O8yxO1fwIoisIuExeXConzQcYu5 aM6tzbhbvWKXFoDlTI6gkl4b1T99RkXquqF01hxjsJR/o/a8sC8f4cPdfclO/xL9qjnS 4+l5kzvKAPFqlap35oTFlwoxkNbLJFz7xuN6F2EBigju3f+vGaD2aQA8MiHRf6yO1GlH DJWQ4B2+fyctj3FHR5HFqhiiuArw7dGYT4u0xXIOR23VofmYO/gC65Fy7aBcZxjtypwU Wd22IIfNhG6XtdCF1nK37fznR7amug0WIZHG9l4mWsoltf+4OnYpvUfgE+FIXQwf4/q+ vtew== 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=vOGnpzf9kbAc3pskvTgVC8U9xfJt1tHSZRnbU4EtX+Y=; b=VaY6fr2ewGw31whBwkYasaO8O5vN588W0RFhmLj9feKCHn+aivM3wCsbwWdIu1BfC6 VmG/ScAJUVKiHitfxdmii6+PRSoJYiv3b25JCEF5Dcn9y6UFWQJwjQTF+iWG5QZ/tdF6 85sPEiPdME/XoF29kcNZIVRFRaGM7lqKzIwIMNGtMtOIvz2DkNSXmGZcrDTzWdSN0Cvg VROb9VT9dTU+T55IoNzVQ+lTSewDvkyeG8/+ssL4b78EK2l9vmgB0aIuPKj7zZAij99w lYt6YE4gjbO+UbJ7KZL3ZH9lwe92EO+uz1quKKe7Z97jEk0PC7QW1lX4uYNvisOsp0xt cW5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IIRonFRB; 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 k10-20020a50e18a000000b00418c2b5bdafsi10431544edl.145.2022.04.05.18.42.41; Tue, 05 Apr 2022 18:43:08 -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=IIRonFRB; 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 S1348203AbiDENFk (ORCPT + 99 others); Tue, 5 Apr 2022 09:05:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343975AbiDEJQn (ORCPT ); Tue, 5 Apr 2022 05:16:43 -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 06F56D8F50; Tue, 5 Apr 2022 02:02:21 -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 A7BA9B80DA1; Tue, 5 Apr 2022 09:02:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20926C385A0; Tue, 5 Apr 2022 09:02:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649149338; bh=0wYuwAGChqOKzuYEF8sOFnPeHw7YKkRvAICZaEhGM7E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IIRonFRBod4qfxRnGye20Gq6eehQH1QyDNsdYXPOsunx8YFo8q0VC9KL926b8CFLc FdQ3Wky1x2Nlv3OJ3Qj/D0g9cnlMs5pkFvHBK6BmYxPSNTF1qD/3zdSs2itZgs5KFp JLOIbPpn/Es7NO1LMMfVR0pcCwWKzI61OmzNISpE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miaoqian Lin , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.16 0681/1017] remoteproc: qcom_wcnss: Add missing of_node_put() in wcnss_alloc_memory_region Date: Tue, 5 Apr 2022 09:26:34 +0200 Message-Id: <20220405070414.492519468@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 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: Miaoqian Lin [ Upstream commit 8f90161a66bc3d6b9fe8dde4d9028d20eae1b62a ] The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. Fixes: aed361adca9f ("remoteproc: qcom: Introduce WCNSS peripheral image loader") Signed-off-by: Miaoqian Lin Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220308063102.10049-1-linmq006@gmail.com Signed-off-by: Sasha Levin --- drivers/remoteproc/qcom_wcnss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/remoteproc/qcom_wcnss.c b/drivers/remoteproc/qcom_wcnss.c index 80bbafee9846..9a223d394087 100644 --- a/drivers/remoteproc/qcom_wcnss.c +++ b/drivers/remoteproc/qcom_wcnss.c @@ -500,6 +500,7 @@ static int wcnss_alloc_memory_region(struct qcom_wcnss *wcnss) } ret = of_address_to_resource(node, 0, &r); + of_node_put(node); if (ret) return ret; -- 2.34.1