Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp716370pxy; Thu, 22 Apr 2021 11:38:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlsZ4IiXsQpwdbBRlXtOf7Y8hyvzbUPVaf1TaUAd+WzyfczU87Ayoq9KtsGnwjoOIfyqtC X-Received: by 2002:a17:906:c9d8:: with SMTP id hk24mr38195ejb.480.1619116724746; Thu, 22 Apr 2021 11:38:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619116724; cv=none; d=google.com; s=arc-20160816; b=0nORU+tvOFF4Oo151+GyBWcALE2kEXxVZr45rJdoPNM4AWLAiCOQpkA/l2yGPmPbWN bXcW1/MPwoVDJ83tTkOEdXL2UPkG1aNwqwtoT5zKo/sZ5aJ1due8jHh2KajkApHXVTLY F+CBjrK9BJLDNiWxLjMxY9feb1gTIKbuRHtGKY8N7zjL4nxpzeKu6IYoAQlP4Non5taX WJb3qrs0xyTy60FsFIQJSOr/pGaTv69f2HEgpc5hJKehUvmi5aiHNO/Euic9IUk+04d9 500I7qcSKMQaMdn0A5FknpiaqAKbHCfJRLKcvoMzGCnpJv6BMC0uiFayuQ6xE7Pv+hMe NpeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=6LTzUA0Exb1djiRGl3kKEyAGDVCGf8HVPiB/ZS+x41M=; b=cuoaKNp4F2HRchtQyUBy7ZXv8/A1C9R6Gx8d3T7pR+Qv175hQkU1S34UTZhHLRXA8d PMdLbmJBSA13ayZFEVmM3gmks4Dt+f8fvxaQn827ZVZl6StCl1pcZeIEgl8Dx2eUKGkj U3DbbHZpQjf27heQS96SUbUFqR2u8q07PQrMNRMfCgwFtOxcHqzdjn0NKWU9hxzMc29Q NoHnVNH3fU85n/30TL9A/R2lQbyPUjvJ0AmEpsj1rNHtu9jtXBHKViNoyCYH+TawGyjm mWU88FbYmbU2XxphOOOJTJgW16tECDJltJMeAMtd1RfMis6i4AnRtuStOHZwye7UE7Zq MwYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=CqetSiAs; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p16si2862973edu.606.2021.04.22.11.38.21; Thu, 22 Apr 2021 11:38: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=@mg.codeaurora.org header.s=smtp header.b=CqetSiAs; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238696AbhDVSha (ORCPT + 99 others); Thu, 22 Apr 2021 14:37:30 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:24657 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236668AbhDVSh3 (ORCPT ); Thu, 22 Apr 2021 14:37:29 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1619116614; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=6LTzUA0Exb1djiRGl3kKEyAGDVCGf8HVPiB/ZS+x41M=; b=CqetSiAsDP6KExrrXA+mGk6lRVIh1yEqr8RhyDYXP2+f0bJVUhI8TEaiPqmYiO+TPOTlG4hq Pmr214tJmt3Sys2A6kRifDDMqn0GRjJ2DJFcr9QQuNWSOnKOw28bclcgOxiJ1C1XkRjHlXqh rWYYWUjMY9buLkLWYkAZngicPzc= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-west-2.postgun.com with SMTP id 6081c234f34440a9d495f9f0 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 22 Apr 2021 18:36:36 GMT Sender: subbaram=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B33EDC433D3; Thu, 22 Apr 2021 18:36:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from subbaram-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: subbaram) by smtp.codeaurora.org (Postfix) with ESMTPSA id A4332C433D3; Thu, 22 Apr 2021 18:36:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A4332C433D3 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=subbaram@codeaurora.org From: Subbaraman Narayanamurthy To: Andy Gross , Bjorn Andersson , Georgi Djakov , Mike Tipton Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Subbaraman Narayanamurthy , stable@vger.kernel.org Subject: [PATCH] interconnect: qcom: bcm-voter: add a missing of_node_put() Date: Thu, 22 Apr 2021 11:36:10 -0700 Message-Id: <1619116570-13308-1-git-send-email-subbaram@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a missing of_node_put() in of_bcm_voter_get() to avoid the reference leak. Signed-off-by: Subbaraman Narayanamurthy Cc: stable@vger.kernel.org --- 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 1cc565b..dd18cd8 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 @@ -205,6 +205,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); -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project