* [PATCH] interconnect: qcom: bcm-voter: add a missing of_node_put()
@ 2021-04-22 18:36 Subbaraman Narayanamurthy
2021-04-22 20:03 ` Matthias Kaehlcke
0 siblings, 1 reply; 3+ messages in thread
From: Subbaraman Narayanamurthy @ 2021-04-22 18:36 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Georgi Djakov, Mike Tipton
Cc: linux-arm-msm, linux-pm, linux-kernel, Subbaraman Narayanamurthy, stable
Add a missing of_node_put() in of_bcm_voter_get() to avoid the
reference leak.
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
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 <asm/div64.h>
@@ -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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] interconnect: qcom: bcm-voter: add a missing of_node_put()
2021-04-22 18:36 [PATCH] interconnect: qcom: bcm-voter: add a missing of_node_put() Subbaraman Narayanamurthy
@ 2021-04-22 20:03 ` Matthias Kaehlcke
2021-04-22 23:46 ` Subbaraman Narayanamurthy
0 siblings, 1 reply; 3+ messages in thread
From: Matthias Kaehlcke @ 2021-04-22 20:03 UTC (permalink / raw)
To: Subbaraman Narayanamurthy
Cc: Andy Gross, Bjorn Andersson, Georgi Djakov, Mike Tipton,
linux-arm-msm, linux-pm, linux-kernel, stable
On Thu, Apr 22, 2021 at 11:36:10AM -0700, Subbaraman Narayanamurthy wrote:
> Add a missing of_node_put() in of_bcm_voter_get() to avoid the
> reference leak.
>
> Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
> Cc: stable@vger.kernel.org
nit: I think you would typically put tags like 'Cc' or 'Fixed' before
the 'Signed-off-by' tag.
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] interconnect: qcom: bcm-voter: add a missing of_node_put()
2021-04-22 20:03 ` Matthias Kaehlcke
@ 2021-04-22 23:46 ` Subbaraman Narayanamurthy
0 siblings, 0 replies; 3+ messages in thread
From: Subbaraman Narayanamurthy @ 2021-04-22 23:46 UTC (permalink / raw)
To: mka
Cc: agross, bjorn.andersson, djakov, linux-arm-msm, linux-kernel,
linux-pm, mdtipton, stable, subbaram
>> Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
>> Cc: stable@vger.kernel.org
> nit: I think you would typically put tags like 'Cc' or 'Fixed' before
> the 'Signed-off-by' tag.
Sure noted. Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-04-22 23:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22 18:36 [PATCH] interconnect: qcom: bcm-voter: add a missing of_node_put() Subbaraman Narayanamurthy
2021-04-22 20:03 ` Matthias Kaehlcke
2021-04-22 23:46 ` Subbaraman Narayanamurthy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.