All of lore.kernel.org
 help / color / mirror / Atom feed
From: peter.chen@nxp.com (Peter Chen)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] hwtracing: coresight: of_coresight: add missing of_node_put after calling of_parse_phandle
Date: Tue, 5 Jul 2016 10:11:04 +0800	[thread overview]
Message-ID: <1467684664-21155-2-git-send-email-peter.chen@nxp.com> (raw)
In-Reply-To: <1467684664-21155-1-git-send-email-peter.chen@nxp.com>

of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.

Cc: linux-arm-kernel at lists.infradead.org
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
---
 drivers/hwtracing/coresight/of_coresight.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hwtracing/coresight/of_coresight.c b/drivers/hwtracing/coresight/of_coresight.c
index b68da18..b693a4b 100644
--- a/drivers/hwtracing/coresight/of_coresight.c
+++ b/drivers/hwtracing/coresight/of_coresight.c
@@ -184,6 +184,7 @@ struct coresight_platform_data *of_get_coresight_platform_data(
 			break;
 		}
 	}
+	of_node_put(dn);
 
 	return pdata;
 }
-- 
1.9.1

  reply	other threads:[~2016-07-05  2:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-05  2:11 [PATCH 1/2] hwspinlock: qcom_hwspinlock: add missing of_node_put after calling of_parse_phandle Peter Chen
2016-07-05  2:11 ` Peter Chen
2016-07-05  2:11 ` Peter Chen [this message]
2016-07-05 16:44   ` [PATCH 2/2] hwtracing: coresight: of_coresight: " Mathieu Poirier
2016-07-06 19:35 ` [PATCH 1/2] hwspinlock: qcom_hwspinlock: " Bjorn Andersson
2016-07-06 19:35   ` Bjorn Andersson
2016-07-07  1:18   ` Peter Chen
2016-07-07  1:18     ` Peter Chen
2016-07-07  3:50     ` Bjorn Andersson
2016-07-07  3:50       ` Bjorn Andersson

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=1467684664-21155-2-git-send-email-peter.chen@nxp.com \
    --to=peter.chen@nxp.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 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.