Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp885950pxb; Fri, 22 Apr 2022 13:26:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSG93R8sOrHWCtiOm95A0Kip39DgNL/qxZoCOeCob5ggJTSQvK/sM0t+Gjp33P8PMm/bkB X-Received: by 2002:a63:798b:0:b0:3aa:1ad6:4713 with SMTP id u133-20020a63798b000000b003aa1ad64713mr5494204pgc.239.1650659188333; Fri, 22 Apr 2022 13:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650659188; cv=none; d=google.com; s=arc-20160816; b=D5nRqvT6af1mbjEJVGAn9wfKIiUly0/RAyoQTb6zyMs4+4GNNHjS84QKeWnSew7pZT VRop4mxcq0Eydh8uLXt2sKFLaGIqr8zWf4ql1gapNW1cZC+yuPP3q+518tMQ0jevO3rh wqS3vdsx2yqd4Y+9CK9gZ3Wz2TOXOIHUatIJawAnD68iwDJFCB0hUd9FmEQ2e+xxv+ih zuF8+3duK9sKV8OlRv4sH42DL7wlcpxTcbCIW9+qoVVDSBI7yQC1NS0Pm7w2Ibdp/AIK FDyiD5Xo/eP98OfkQD+doeiWWzsTBA32JmviEls8CbhSJjaqfGhRVO6vfnQXxmr4rJ/N maAw== 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=KYkpxAkETp0dfxWci5j2uvNiECTb6jXirAbctVBCcaA=; b=gfaUvf2Ucq+Ln2I25dCZBrxqptUMcpqzeK7+7ST2yZSXWp+eLR8C9e1Oz0rwKnwUoH QUZlIFTVNeYBa5RUXLQJsTFQudofkcNy4gsp0aWsAqf83qSCQPotKhe/EQcdARiyK8Wl CeKVOUtkMybcvL0b0zw+jjUhislrd+5aSUAoScrj8oFZd/PK18KmW+yI6qmEMi1k7NM6 u3SDgU88ipG5MzXWpZLyxNquLWigYZSZ7M2wegnJ7LMrzY6wtuC71W/JiFmdkitqe+Ya iwTeuj9Br5pjFFMHNGhz8bshKlTFTIJXngTr9sppGUhc3gNjh31uNSmn2WVQxtkt3KPL sxdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NyWHBUmW; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s25-20020a639259000000b003a82190c6edsi5341487pgn.358.2022.04.22.13.26.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 13:26:28 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NyWHBUmW; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 52DED12ACDE; Fri, 22 Apr 2022 12:13:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244775AbiDRNr7 (ORCPT + 99 others); Mon, 18 Apr 2022 09:47:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243963AbiDRN3a (ORCPT ); Mon, 18 Apr 2022 09:29:30 -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 A361640916; Mon, 18 Apr 2022 05:54: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 2104FB80E59; Mon, 18 Apr 2022 12:54:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87CD8C385A1; Mon, 18 Apr 2022 12:53:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650286439; bh=PXwuxQls4lcpJ+LCeJY72pFN8FlRKeiT6Ogjd2vT3l4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NyWHBUmW3WSbi857N9pp9pS8mHWDQfyjkKcc/tGs5PcOyPS0Sk4ILf9xTgFKrlT3+ yUB2NNwJoHykyzGdhIW5sORlyO6oof9CQ691FfVfeVzZP8gTiEVWYrY+T6tukN7rw9 UHYu53k1Uf6IX0zV0uHm8euHpmD+eHhoi2fQJflU= 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 4.14 136/284] remoteproc: qcom_wcnss: Add missing of_node_put() in wcnss_alloc_memory_region Date: Mon, 18 Apr 2022 14:11:57 +0200 Message-Id: <20220418121215.258707966@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121210.689577360@linuxfoundation.org> References: <20220418121210.689577360@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=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 c7686393d505..bc399fb29592 100644 --- a/drivers/remoteproc/qcom_wcnss.c +++ b/drivers/remoteproc/qcom_wcnss.c @@ -451,6 +451,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