Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2194238iof; Tue, 7 Jun 2022 22:48:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbgCCWVNWQd9n4jX+4SGmT4yxVJrS1h5dsCkUDqJqxu6XGJ/N+BfrAi7l659c2PKOYLAjI X-Received: by 2002:a17:903:11c6:b0:167:90e5:59ac with SMTP id q6-20020a17090311c600b0016790e559acmr7675843plh.143.1654667339571; Tue, 07 Jun 2022 22:48:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654667339; cv=none; d=google.com; s=arc-20160816; b=VyuMximDCiaW1dXSAFHqucFVnQ5vTu+tZGinwYClCh4f97M0y7AjIH9VuirfDZjr7a ldoOVl+XUZD/ciNzWpVsV7HX9R6vURncelzQ0xG/qykLXXsCp1JChwRBol2yDEKYM5PR aeDXHMLooWyM25QfQ1buwbK925Rz5FGMAzVuA2f5tYAMXSWuWiOWvzwuTW7xld1+DHAs Jk6tQay4jOBhjWGV87oLRt0X6g1LVia8wZZ6NjZHhFUbgDLE4NyD6nnIP1ERk4aowF63 CuNqKfVMPAdPIq6l+EMm34doieGL4jSshZFaYMvDWvWtFlwT6a/8cKR9HUKHwSdQuZXv 4cpg== 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=ZoENhA9viQ4RMqk4FgK488/ZwdChMBhlIGPIG6YYxm0=; b=VmxHZHrUKZUCaUnLlxQs1De9jl0HOHhxCmQvP7L6nNDRzTMXkL8HZojI1PydQL2ILS rbNbpH0pI53x7D96wXt5Gx5IvNb5Q0XbIpqXNNU1GRn9iX5q4cS5oaBcNJYOeceyzOQP NkYtZX/aCS0AvpJ7Oypgo+XggjzgZC7rRqXvAaYy5Bv/X7ZUuRa0VcIuKUjz72/3Zz9c ieRLNUwWBnC2KsuMWtVBpl/wh5mbXyjS97h86gNTIZaouD6CYNw0HDSsmL42d8F3a6fG ji85MFvYm0c0dE2vPI9atuQMrCDod6zcruFW8I0a+LLuWIKWAZPR9WGoDsuir9XY6bbp NhlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wpegZkBz; 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 p23-20020a17090a931700b001dceae99b8bsi29097092pjo.102.2022.06.07.22.48.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:48:59 -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=wpegZkBz; 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 18AB333CF43; Tue, 7 Jun 2022 22:15:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358322AbiFHAeU (ORCPT + 99 others); Tue, 7 Jun 2022 20:34:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383055AbiFGVwO (ORCPT ); Tue, 7 Jun 2022 17:52:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D419812D1F9; Tue, 7 Jun 2022 12:10:23 -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 5A456617D0; Tue, 7 Jun 2022 19:10:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6760AC385A5; Tue, 7 Jun 2022 19:10:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629022; bh=u9c66hxd3Gms4SPDAZa/wUClxIpzgAWDdqlqJK5JUd0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wpegZkBzqKmaCyw7rasOPPbDUWeQbgOhqjdgw/Io6CCF5ROWzE2BixXHRBqxTKkwJ laxb3aywEpfOorW3H9vjE7RHsucXDmUsNOi+Fcm2XijxFQu0b90JUmQ/XhANDF38Ho IAX6WZ1rQh36Gi52+F9xADTjHSQfE/KpkEIGgwLc= 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.18 539/879] soc: qcom: smp2p: Fix missing of_node_put() in smp2p_parse_ipc Date: Tue, 7 Jun 2022 19:00:57 +0200 Message-Id: <20220607165018.517871860@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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 4a157240f419..59dbf4b61e6c 100644 --- a/drivers/soc/qcom/smp2p.c +++ b/drivers/soc/qcom/smp2p.c @@ -493,6 +493,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