netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Liang He" <windhl@126.com>
To: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk,
	davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com, netdev@vger.kernel.org, linmq006@gmail.com
Subject: Re:[PATCH v2] of: mdio: Add of_node_put() when breaking out of for_each_xx
Date: Tue, 13 Sep 2022 23:13:20 +0800 (CST)	[thread overview]
Message-ID: <622cae81.8543.18337696f77.Coremail.windhl@126.com> (raw)
In-Reply-To: <20220913125659.3331969-1-windhl@126.com>




At 2022-09-13 20:56:59, "Liang He" <windhl@126.com> wrote:
>In of_mdiobus_register(), we should call of_node_put() for 'child'
>escaped out of for_each_available_child_of_node().
>
>Fixes: 66bdede495c7 ("of_mdio: Fix broken PHY IRQ in case of probe deferral")
>Cc: Miaoqian Lin <linmq006@gmail.com>
>Co-developed-by: Miaoqian Lin <linmq006@gmail.com>
>Signed-off-by: Liang He <windhl@126.com>
>Signed-off-by: Miaoqian Lin <linmq006@gmail.com>

Hi, Miaoqian, 
this Sob should directly from you,
please do it!


>---
> v2: use proper tag advised by Jakub Kicinski
> v1: fix the bug
>
> drivers/net/mdio/of_mdio.c | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/drivers/net/mdio/of_mdio.c b/drivers/net/mdio/of_mdio.c
>index 9e3c815a070f..796e9c7857d0 100644
>--- a/drivers/net/mdio/of_mdio.c
>+++ b/drivers/net/mdio/of_mdio.c
>@@ -231,6 +231,7 @@ int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np)
> 	return 0;
> 
> unregister:
>+	of_node_put(child);
> 	mdiobus_unregister(mdio);
> 	return rc;
> }
>-- 
>2.25.1

  reply	other threads:[~2022-09-13 18:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-13 12:56 [PATCH v2] of: mdio: Add of_node_put() when breaking out of for_each_xx Liang He
2022-09-13 15:13 ` Liang He [this message]
2022-09-15 16:51   ` Miaoqian Lin
2022-09-20 14:50 ` patchwork-bot+netdevbpf

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=622cae81.8543.18337696f77.Coremail.windhl@126.com \
    --to=windhl@126.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linmq006@gmail.com \
    --cc=linux@armlinux.org.uk \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.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).