Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp937032pxb; Wed, 6 Apr 2022 04:48:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuE6LI2gW1Zoi7MngvxQwtSTlIo/PgbkCK2Z/ELqOfSz60GLMlYxa5IRMOyg4GVPq2d/1y X-Received: by 2002:a63:b555:0:b0:398:4ca1:4be0 with SMTP id u21-20020a63b555000000b003984ca14be0mr6719872pgo.294.1649245737970; Wed, 06 Apr 2022 04:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649245737; cv=none; d=google.com; s=arc-20160816; b=uJ8QrXuM9UkSVYhFAZRHPqC86XZzJMzwXSZXSMmHKGz4n6vbxegCTdL8XXyxIjFYFS 26aRu733mwIfYoqhMcVtLqEi6Ns/xpGVkHIyl7PtlxJdyplcK0baG1sdhxoA4O4uIPpu nh35d+gAUgS6TM3/TT9HO/GBAwavPEnkftNSs47rs6T5naApkZJZD1+6fKQXXgs7kujT aPbumckri96lHr7boTtjHhC/tJ3AAP3yog9/DM9rV1ca79SaNX+/i34Zb75u0nk+56p5 N8r16dRorrpACPrv6But91saksNlGWX2EvV1MlEM6KqmPcLy0GDdWKUxwk29FKSnQEwg xjFw== 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=vcP02MpUsVq0L+4b8dSM/Hlew9AK2fSDS5uUBQpYo30=; b=borc8ydicGu6+3Sp8b8q1xwB6n7PX5z9upxMD6k4nymtNjsK+Becdq0u7MJCim/v69 wgKrhYpIudFXOQiapq5hSW/lf6YU1lWNi1YFt7ih5gHELsqXd6BvjbCIWd97qf1tzvMy 9wamUUi8b9qwohOSc3eUxTk8/c0th0gfLaTAmNBbFdybpGXxAKvMSyvWWeeyqo2o3xUv v/RRxLyMHzHqOM7CbIUPJvE8xplM9r29zaODarW9uHi3crwRcEDHvXcAjq2Bv1xlUE6g 8Stg+yQWcaownL+4FV4RKC4ZHi8YjybgIHyHOMU77/BP6u2al/FQr8Gvg4qIDvfQLucl EYXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kvc6APTw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a15-20020a62d40f000000b004fb768f4ff9si10370397pfh.324.2022.04.06.04.48.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:48:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kvc6APTw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 3B53F4EED90; Wed, 6 Apr 2022 03:07:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1583269AbiDEXwC (ORCPT + 99 others); Tue, 5 Apr 2022 19:52:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349464AbiDEJty (ORCPT ); Tue, 5 Apr 2022 05:49:54 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C14253888; Tue, 5 Apr 2022 02:46:39 -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 6D37EB81B76; Tue, 5 Apr 2022 09:46:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFE16C385A1; Tue, 5 Apr 2022 09:46:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151997; bh=etYijgs80etYQU4mSdkRGuphdM0LfpViEFglpJItmQQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kvc6APTwQaR7EWYUTjV/TvGOBa2xnX6loUiFi6jaFkkUb8Wtp0Sazo5KcMdvrSd9O JAPQQ0rptAuJgnn+HRm+seUW07NQaJaMy15tllYvp9/qUEKwy6r6v3G3CypizrC7oE TecdgAVyiUJj+Wa1vYKijfToDlNap4mh3fu6XLh4= 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 615/913] remoteproc: qcom: Fix missing of_node_put in adsp_alloc_memory_region Date: Tue, 5 Apr 2022 09:27:57 +0200 Message-Id: <20220405070358.275985460@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 505b5b1616e200042999de715dbe7c1e2735cd65 ] The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. Fixes: dc160e449122 ("remoteproc: qcom: Introduce Non-PAS ADSP PIL driver") Signed-off-by: Miaoqian Lin Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220308031219.4718-1-linmq006@gmail.com Signed-off-by: Sasha Levin --- drivers/remoteproc/qcom_q6v5_adsp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/remoteproc/qcom_q6v5_adsp.c b/drivers/remoteproc/qcom_q6v5_adsp.c index 8b0d8bbacd2e..c10d452c9703 100644 --- a/drivers/remoteproc/qcom_q6v5_adsp.c +++ b/drivers/remoteproc/qcom_q6v5_adsp.c @@ -406,6 +406,7 @@ static int adsp_alloc_memory_region(struct qcom_adsp *adsp) } ret = of_address_to_resource(node, 0, &r); + of_node_put(node); if (ret) return ret; -- 2.34.1