[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1533822056-33930-1-git-send-email-zhongjiang@huawei.com>
Date: Thu, 9 Aug 2018 21:40:56 +0800
From: zhong jiang <zhongjiang@...wei.com>
To: <ezequiel@...labora.com>, <daniel.lezcano@...aro.org>
CC: <rui.zhang@...el.com>, <edubezval@...il.com>,
<jonathanh@...dia.com>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] drivers/thermal/tegra: fix a doule free devce node
Device node iterators will get the return node. Meawhile, It is
also put the previous device node. An explicit put will cause
a double put.
Signed-off-by: zhong jiang <zhongjiang@...wei.com>
---
drivers/thermal/tegra/soctherm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c
index ed28110..3aa55c9 100644
--- a/drivers/thermal/tegra/soctherm.c
+++ b/drivers/thermal/tegra/soctherm.c
@@ -980,7 +980,6 @@ static void soctherm_init_hw_throt_cdev(struct platform_device *pdev)
tcd = thermal_of_cooling_device_register(np_stcc,
(char *)name, ts,
&throt_cooling_ops);
- of_node_put(np_stcc);
if (IS_ERR_OR_NULL(tcd)) {
dev_err(dev,
"throttle-cfg: %s: failed to register cooling device\n",
--
1.7.12.4
Powered by blists - more mailing lists