Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp954094pxb; Wed, 6 Apr 2022 05:13:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzdDTnl3sO3mMWDErY47GXRYbKxJKLyNLuIfsTMivylhV7x6JnjdilviYByPiLOEpzfPB0 X-Received: by 2002:a62:8308:0:b0:4fa:7bcd:d0e6 with SMTP id h8-20020a628308000000b004fa7bcdd0e6mr8795551pfe.35.1649247208541; Wed, 06 Apr 2022 05:13:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649247208; cv=none; d=google.com; s=arc-20160816; b=a6CYUh+Ebir9jbZVKbdDe4nwENYvgOC1VypPiKy5sfU2GtpDANTE3ijk61xsBSW1Y/ d+FT0a7yTcOaDeEnjoISyCmcSgUGTUK5ZguV3YCIFct0+MYrZgYXBjfxEDquWT/8ABrs vRdU9OuiuMP+R4S6gENo4AqoA+/YOIVN+AIKRSHIc5N8HF/fc2DCz7/AnZJrqLzXDobT qTGPdSuthAN6HzoxvHJLUKR4QYC1JCmKMkr+gS7TJT2fX0X+rBkKKvpXgKru2GpUjsuq iBr7xy/hQVL4+cTbFD++HuQPsswDwWcICUB8LUrNFhxQO8XrRpvwlWXeT0z4dgSCyUNP 02jQ== 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=ANHCYJpas1dfu03ngY0TLXoi94KOhUOioIIh2vq7GXE=; b=XvWajp2ijTIkMSK2kAZeUZbC5ofJFfD2QVGKLYqWsXXlP8T+oIMLNVU28pMDQVX2LS 19HV7YGphN5Zv8R+xeNfw+PI2Q0CB4kwDCOE71ohXwWvHUZDKrZddVCL8iuUj49wcHXm 3G/cm5BJWqUM+Y3TzYixlkYx2YxmmrNAR3EYN1RysYl80CYizOiA+jbdmvND1KOe3O9R fX5KZ7Z1gOLv+ehb80D+74DhKvLHKUhY3dkdcFJyRus0vjB3qmZqJuVkLr7qOhHHdjsa RTvJYQ2VOgWYymSKy8TKrzVdJXBBxy38n5aiOpDp1bOgEzJKBu96lcYYnV/OA7gCFrph 46Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SQlsoJAf; 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 m30-20020a637d5e000000b0038265eb3545si16182262pgn.334.2022.04.06.05.13.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:13: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=SQlsoJAf; 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 0E1D85139C6; Wed, 6 Apr 2022 03:52:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385802AbiDEVuI (ORCPT + 99 others); Tue, 5 Apr 2022 17:50:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349661AbiDEJuv (ORCPT ); Tue, 5 Apr 2022 05:50:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78C82112F; Tue, 5 Apr 2022 02:48:49 -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 14692615E3; Tue, 5 Apr 2022 09:48:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DF0CC385A1; Tue, 5 Apr 2022 09:48:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152128; bh=EN/h9MuQ8YPinwPxDQ9qw4apglfU/7kLJJV2EWiYFP0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SQlsoJAfoWXsDXHhs0pjsIplHTdEH/W3tswdOgHElJhDR/Fq2DGPY1meJ7Nw4cJ8N C9gKkFNuMNCSmhoW2uBAhR1EpVvZiQUft3UFEbhrZTqvlr69Saz3UMplEAk36Kxage 85738zYvITC+VqkaKdVAs9ecmO1HRb3uK+lSsgT8= 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.15 616/913] remoteproc: qcom_wcnss: Add missing of_node_put() in wcnss_alloc_memory_region Date: Tue, 5 Apr 2022 09:27:58 +0200 Message-Id: <20220405070358.305769205@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@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.0 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,T_SCC_BODY_TEXT_LINE autolearn=no 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 ebadc6c08e11..b17742eac9ff 100644 --- a/drivers/remoteproc/qcom_wcnss.c +++ b/drivers/remoteproc/qcom_wcnss.c @@ -501,6 +501,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