From: Jon Hunter <jonathanh@nvidia.com>
To: zhong jiang <zhongjiang@huawei.com>, <ezequiel@collabora.com>,
<daniel.lezcano@linaro.org>
Cc: <rui.zhang@intel.com>, <edubezval@gmail.com>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] drivers/thermal/tegra: fix a doule free devce node
Date: Mon, 13 Aug 2018 19:30:30 +0100 [thread overview]
Message-ID: <312fcf2a-ab47-9aa4-3b1f-bca5f6a4d58c@nvidia.com> (raw)
In-Reply-To: <1533822056-33930-1-git-send-email-zhongjiang@huawei.com>
On 09/08/18 14:40, zhong jiang wrote:
> 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@huawei.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",
>
Thanks!
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Cheers
Jon
--
nvpublic
next prev parent reply other threads:[~2018-08-13 18:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-09 13:40 zhong jiang
2018-08-13 18:30 ` Jon Hunter [this message]
2018-08-13 18:35 ` Jon Hunter
2018-08-14 6:39 ` Daniel Lezcano
2018-08-14 6:56 ` zhong jiang
2018-08-17 2:25 ` zhong jiang
2018-08-27 8:42 ` Daniel Lezcano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=312fcf2a-ab47-9aa4-3b1f-bca5f6a4d58c@nvidia.com \
--to=jonathanh@nvidia.com \
--cc=daniel.lezcano@linaro.org \
--cc=edubezval@gmail.com \
--cc=ezequiel@collabora.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rui.zhang@intel.com \
--cc=zhongjiang@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®