Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2179877iof; Tue, 7 Jun 2022 22:21:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTIS7isPmW9n9fSyhQBL0Xl/cFgYX809EeAKy2hJjmGY30liyw18M0vyWM4tiC5681MB/T X-Received: by 2002:a63:83c6:0:b0:3fe:2e64:fcb9 with SMTP id h189-20020a6383c6000000b003fe2e64fcb9mr1619574pge.90.1654665705573; Tue, 07 Jun 2022 22:21:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654665705; cv=none; d=google.com; s=arc-20160816; b=r41+NvQsWL7wNrdB+z+xmhBh+5SfKP4QHFO1Cg/6R50jvfZdF9WLSJsUehcUMzcX2p Jckgt/aK3pkYu3CQNcK56wit/OTF90TLnDWpuxC489Arxn7ENqd/P/zNDgcHMcVSab7q 99/wGhy6ym5nnpiNUkX5Pm4aoRgPsTG3B4k/g21udsln2V7hltmKC9tZuSgYfXBHMGEH Pm1Q6gYCVTJ4F04T/tEGKYmrVx9uLkW5xwT8MX2rPYKAZabANcIcIcMVOFrTMlV6REbx cHEpgworck7pSEsM4LgRK/Sg/18JQHmtkGemNta3l4WJro7d3eN5EwtBVuPgtGN0xorz 0ANA== 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=oTqRLu352m0D0hm92h7iCSWL2ndlS/J5KUQG0qcRSeg=; b=PGPSxU0ttBplytyQZejRzIvJ2QnvZKjq0mx4ADQrsk5zHe0+1Xfvpy+7TBX6OB1zDG Pwl+T5pyG0cI8I0grmh51MAMfUvg7RaeURzNpveBsVR0+Nr/vPtvP08TKz84smxSzhLd yS2BjR+F4WAqAj6DtdQkSJjquvOm53YYx7HEBdMCNIm3CwFf8hg9h4yt096WmJppT717 Q7A2ylEkWcLZ5W60k5dpi0CV2i7V57/5QwLlOnl0Xp11kGBweMNwWwiGjGZub6yv1iLu rvhBG7OFCtyHCXmtahT5abF6seCMKv3pp+qga+PUdDWkoXAhWZHTOOcbIkcLlHuxdVmw 3Wnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oYmTrWeR; 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 h190-20020a6383c7000000b003fe2e6495easi1615519pge.409.2022.06.07.22.21.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:21:45 -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=oYmTrWeR; 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 1A594483952; Tue, 7 Jun 2022 21:56:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349212AbiFGRuj (ORCPT + 99 others); Tue, 7 Jun 2022 13:50:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346985AbiFGRcW (ORCPT ); Tue, 7 Jun 2022 13:32:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E9355F8EA; Tue, 7 Jun 2022 10:30:14 -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 44B8460BC6; Tue, 7 Jun 2022 17:30:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47918C385A5; Tue, 7 Jun 2022 17:30:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654623002; bh=rGUx6AQ9D3IfO4LzuIEfqjxSjzgaw5MqOB16sR62HaA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oYmTrWeRQtnTsJV1QVxwSk/AoR4316rOzqZ6FFwI4kDKKo7Nlc1LLhPEo4jJ4KxZw G5i2jLBxzh/4jGx2+UfjKvT3MBD6Q4b5pNMJN3uldStWo/1bW/GhPLEHeiG9kpjewU WeFJr5k/v9qqeiHIFCdFk+QnxRVbgXVmKlqACaoc= 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.10 261/452] soc: qcom: smp2p: Fix missing of_node_put() in smp2p_parse_ipc Date: Tue, 7 Jun 2022 19:01:58 +0200 Message-Id: <20220607164916.331179809@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@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=-3.1 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=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 8fd3f18ea31a398ecce4a6d3804433658678b0a3 ] The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. Fixes: 50e99641413e ("soc: qcom: smp2p: Qualcomm Shared Memory Point to Point") Signed-off-by: Miaoqian Lin Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220308071942.22942-1-linmq006@gmail.com Signed-off-by: Sasha Levin --- drivers/soc/qcom/smp2p.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/qcom/smp2p.c b/drivers/soc/qcom/smp2p.c index a9709aae54ab..fb76c8bc3c64 100644 --- a/drivers/soc/qcom/smp2p.c +++ b/drivers/soc/qcom/smp2p.c @@ -420,6 +420,7 @@ static int smp2p_parse_ipc(struct qcom_smp2p *smp2p) } smp2p->ipc_regmap = syscon_node_to_regmap(syscon); + of_node_put(syscon); if (IS_ERR(smp2p->ipc_regmap)) return PTR_ERR(smp2p->ipc_regmap); -- 2.35.1