Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2269936iof; Wed, 8 Jun 2022 01:01:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyjF6UW6l1u7s/2GPTj6Gbevc9Hu74qvD4kJqAFm2ZeqYWmjqVM/VH9qCorGoJSLe5Y6fz X-Received: by 2002:a65:4183:0:b0:3fc:1370:9c37 with SMTP id a3-20020a654183000000b003fc13709c37mr29128540pgq.4.1654675278879; Wed, 08 Jun 2022 01:01:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654675278; cv=none; d=google.com; s=arc-20160816; b=iDliupXFr60jf9hcUdGzqzFuMLGGFe+0et4PNJhE6dqdJVbqgKJqmbzu6raIVvjzUx 0Z8qGYAeXdc5h/t6nj9x99OklsUxtxhLXmSbQ6228nn5YUvkcoJQtaEOZ2UV1OZkNntW bKjRv7YLA+U3OGkgtCgHO8OpjYzeMnrMXXq3Jb7UwrDhfy8/EzSyGz/lWcrtoupvrx4P Y2VRBzZam+NTy37Ejccw3Vu7lYb+ojW6cU/B4fsKeKzetVERAhgEh0yXB1bCpMtmpXWc Mqa6dev4mO91hKo52xLOnKfN67MGvSV4zHxDg4A9PEniRNGmxT1UhE+vlmiOX3arRsCs GFmQ== 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=6bq/8HisaNwpjrLmJp5MkB74ZWrPiEzC0AaDx88dscU=; b=lmCWlm46yTH+zqFiIiZ8gq38VhUsJzEyx57TPPVpVcMVusdN+ziw2b7l4yPLW5m85M uMzrzv9+7Ue239hlc8aCNkiN7pQk4ADbeQkItnE36CN4snT7/ejfBfbwY1MhzMLgmrYi UmCjZnmDIIdpYpqyNNVGgcsgenYNFoqsZm4J5J9z1GWY1YJDOECUKt2OcsOdutwOhdCx dMUor7Cb81iiWYf+5rw5ZN4njfWc6d+FBFa1AN5JIMxHVOXIzFi3SlTnfLB3evUiW8Tz l/xId61xgR6J8BxKJOPRppAbPCquGMe+T5dUV/5waqdX/WdFPxRVRRprWja0fgn5kNIX zPjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oeGiFoil; 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 185-20020a6206c2000000b005189b83cdbcsi25871602pfg.61.2022.06.08.01.01.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 01:01:18 -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=oeGiFoil; 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 3DF171EBEFD; Wed, 8 Jun 2022 00:31:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349516AbiFGRvC (ORCPT + 99 others); Tue, 7 Jun 2022 13:51:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345104AbiFGReA (ORCPT ); Tue, 7 Jun 2022 13:34:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F6E6106341; Tue, 7 Jun 2022 10:30:26 -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 E7B0160C7C; Tue, 7 Jun 2022 17:30:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 021DCC34115; Tue, 7 Jun 2022 17:30:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654623005; bh=TEyi3OH9X77Dmi3sI/sc/3+TjArekS69CqgUMczDuug=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oeGiFoilIXkFCvEKGg1MVqaIkdiE7O/VWBgCgJ9yuaniCa6f9ENOKxALZ7HM+gLkB LXpp0dEC3NeJIqq3AhG8Y2iqazemXmTUyO50NF53qTiXFta6MenggRmEkvAeMhWlyZ UomPHaa4Q9QZIdkSxQoOKM/+svmfCVnWJHg2tye8= 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 262/452] soc: qcom: smsm: Fix missing of_node_put() in smsm_parse_ipc Date: Tue, 7 Jun 2022 19:01:59 +0200 Message-Id: <20220607164916.361415353@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 aad66a3c78da668f4506356c2fdb70b7a19ecc76 ] The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. Fixes: c97c4090ff72 ("soc: qcom: smsm: Add driver for Qualcomm SMSM") Signed-off-by: Miaoqian Lin Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220308073648.24634-1-linmq006@gmail.com Signed-off-by: Sasha Levin --- drivers/soc/qcom/smsm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/qcom/smsm.c b/drivers/soc/qcom/smsm.c index c428d0f78816..6564f15c5319 100644 --- a/drivers/soc/qcom/smsm.c +++ b/drivers/soc/qcom/smsm.c @@ -359,6 +359,7 @@ static int smsm_parse_ipc(struct qcom_smsm *smsm, unsigned host_id) return 0; host->ipc_regmap = syscon_node_to_regmap(syscon); + of_node_put(syscon); if (IS_ERR(host->ipc_regmap)) return PTR_ERR(host->ipc_regmap); -- 2.35.1