Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2679270pxj; Mon, 31 May 2021 08:05:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIe/IVq93SnVHv95HeLapFSy6tFDpfuw+76O1C1gFuKTLPefvNx7Ztkx2pjThBazytpdU+ X-Received: by 2002:a05:6402:1c83:: with SMTP id cy3mr6230608edb.108.1622473544805; Mon, 31 May 2021 08:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622473544; cv=none; d=google.com; s=arc-20160816; b=lZbganLFxgL7QCxIXyCv5w64CmMyziNjnPbJPXMMIS5rNJdDlZ2g0XbTjepISmz4GT mSuJoVH3xckPeYGoMfQd85K6SLRpwLqKsJ/zDyHx28yurNqgt1G81b5jTK4NKWJF9ZCz LiL/5bYncQh+dMBGqAHtqzECZ6BlpPoKZ4BG4mAvhGcJdCfZtulLvIGQEgW9QtQl++Yl BKSKF7f+EseHeHYUn+cgxRvLdZf61IvW0oAjOFKbFBbNqGVyWk5GR99pWRjIc30nuMFR Wj2IDUSaL5tXhMNzpHxNZSLEkJmA2eLByW3+naCZcjoHP6DMU0d0+Evf5i5n8KXHr1U/ CFNA== 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=9rOZysAeFNw2qIET4nfQb8kTryJDYFKY14kx43IsdH0=; b=OsCplENbSCaw1LRbL669098tYmDqEiZ4tfDA/Wlr8X7OJgPM41dboD4eDHI69C3cuh b3Z82ylRtDqjgdP55aD0lFpWkioN0MVBNtlGQLJSPrNijLa3XLmScptpc+msTxMahE+O OV5f5HMO49NW9VAo3o1BuMWoMIx737q1SaBR70IhNmC5ZzGgVWLwuC4PJwLVpoVcP5L4 XYoRgahQizDMrJNH+H/MuhmYQh8h1IWkhA4O4qQat+Ltrulo00Af9+1qIG39yYV90X9s FAMwA1kbszY6sRbPFtKiWlnWRIbH/pkkgb9lV8YYGux2H+BGYWCwB02z2uhjgTJpi8jC NVGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2ObxucgI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si638338edr.440.2021.05.31.08.05.22; Mon, 31 May 2021 08:05:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2ObxucgI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233532AbhEaPDK (ORCPT + 99 others); Mon, 31 May 2021 11:03:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:40026 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233318AbhEaOGy (ORCPT ); Mon, 31 May 2021 10:06:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2A7D361375; Mon, 31 May 2021 13:39:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468345; bh=iq19nwbXo475XeFET3mRSIMavLdAwk3iHyWapCMHCAU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2ObxucgIyMmcMGA7u77g3/zbVMYhw7KJY8QXKT5mj5l8v65z87XgDqsKVtloKJQBN e25ijtQXzgpX+IP3UXY8t5VEWYa3mExiPl0e5SuZULMBW0+2eoXMKMABCCslxsXiEO IQmehi5ySItsXHDnUrAdUHsm1CyVDlWV7P3cgTWw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Subbaraman Narayanamurthy , Matthias Kaehlcke , Georgi Djakov , Sasha Levin Subject: [PATCH 5.10 191/252] interconnect: qcom: bcm-voter: add a missing of_node_put() Date: Mon, 31 May 2021 15:14:16 +0200 Message-Id: <20210531130704.497208212@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Subbaraman Narayanamurthy [ Upstream commit a00593737f8bac2c9e97b696e7ff84a4446653e8 ] Add a missing of_node_put() in of_bcm_voter_get() to avoid the reference leak. Signed-off-by: Subbaraman Narayanamurthy Reviewed-by: Matthias Kaehlcke Link: https://lore.kernel.org/r/1619116570-13308-1-git-send-email-subbaram@codeaurora.org Fixes: 976daac4a1c5 ("interconnect: qcom: Consolidate interconnect RPMh support") Signed-off-by: Georgi Djakov Signed-off-by: Sasha Levin --- drivers/interconnect/qcom/bcm-voter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/interconnect/qcom/bcm-voter.c b/drivers/interconnect/qcom/bcm-voter.c index 887d13721e52..7c3ef817e99c 100644 --- a/drivers/interconnect/qcom/bcm-voter.c +++ b/drivers/interconnect/qcom/bcm-voter.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* - * Copyright (c) 2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. */ #include @@ -212,6 +212,7 @@ struct bcm_voter *of_bcm_voter_get(struct device *dev, const char *name) } mutex_unlock(&bcm_voter_lock); + of_node_put(node); return voter; } EXPORT_SYMBOL_GPL(of_bcm_voter_get); -- 2.30.2