From: David Miller <davem@davemloft.net>
To: wenyang@linux.alibaba.com
Cc: alexandre.belloni@bootlin.com, UNGLinuxDriver@microchip.com,
xlpang@linux.alibaba.com, zhiche.yy@alibaba-inc.com,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] net: mscc: ocelot: add missing of_node_put after calling of_get_child_by_name
Date: Tue, 01 Oct 2019 10:02:33 -0700 (PDT) [thread overview]
Message-ID: <20191001.100233.2002881947003652758.davem@davemloft.net> (raw)
In-Reply-To: <20190929065424.2437-1-wenyang@linux.alibaba.com>
From: Wen Yang <wenyang@linux.alibaba.com>
Date: Sun, 29 Sep 2019 14:54:24 +0800
> of_node_put needs to be called when the device node which is got
> from of_get_child_by_name finished using.
> In both cases of success and failure, we need to release 'ports',
> so clean up the code using goto.
>
> fixes: a556c76adc05 ("net: mscc: Add initial Ocelot switch support")
> Signed-off-by: Wen Yang <wenyang@linux.alibaba.com>
Applied.
next prev parent reply other threads:[~2019-10-01 17:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-29 6:54 [PATCH] net: mscc: ocelot: add missing of_node_put after calling of_get_child_by_name Wen Yang
2019-10-01 17:02 ` David Miller [this message]
2019-10-17 5:40 ` Wen Yang
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=20191001.100233.2002881947003652758.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=UNGLinuxDriver@microchip.com \
--cc=alexandre.belloni@bootlin.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=wenyang@linux.alibaba.com \
--cc=xlpang@linux.alibaba.com \
--cc=zhiche.yy@alibaba-inc.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;
as well as URLs for NNTP newsgroup(s).