From: "Liang He" <windhl@126.com>
To: "Jakub Kicinski" <kuba@kernel.org>
Cc: davem@davemloft.net, edumazet@google.com, pabeni@redhat.com,
netdev@vger.kernel.org
Subject: Re:Re: [PATCH] ftgmac100: Hold reference returned by of_get_child_by_name()
Date: Thu, 7 Jul 2022 09:28:34 +0800 (CST) [thread overview]
Message-ID: <585084ab.1002.181d645e69b.Coremail.windhl@126.com> (raw)
In-Reply-To: <20220706093459.2885de93@kernel.org>
At 2022-07-07 00:34:59, "Jakub Kicinski" <kuba@kernel.org> wrote:
>On Wed, 6 Jul 2022 16:55:37 +0800 (CST) Liang He wrote:
>> >Since we don't care about the value of the node we should add a helper
>> >which checks for presence of the node and releases the reference,
>> >rather than have to do that in this large function.
>> >
>> >Please also add a Fixes tag.
>>
>> Hi, Jakub,
>>
>> Can you tell me where to add such helper?
>>
>> you mean add a helper in of.h for common usasge or just add it in this file?
>
>I was wondering about that. Since this is a fix let's keep it simple
>and add the helper directly in the same source file.
>
Thanks, I will first make a quick patch for this bug.
>If you have more time to spend on this try searching around the tree to
>see if there are more places where such helper would help. If there are
>we can move the helper to of.h and convert the users in -next.
Yes, I have found many similar bugs and sent many similar patches, I would like
try to make a common helper in of.h.
Thanks,
Liang
prev parent reply other threads:[~2022-07-07 1:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-04 15:18 [PATCH] ftgmac100: Hold reference returned by of_get_child_by_name() Liang He
2022-07-06 1:48 ` Jakub Kicinski
2022-07-06 1:58 ` Liang He
2022-07-06 8:55 ` Liang He
2022-07-06 16:34 ` Jakub Kicinski
2022-07-07 1:28 ` Liang He [this message]
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=585084ab.1002.181d645e69b.Coremail.windhl@126.com \
--to=windhl@126.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--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).