From: Florian Fainelli <f.fainelli@gmail.com>
To: Yang Yingliang <yangyingliang@huawei.com>,
	linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Cc: opendmb@gmail.com, davem@davemloft.net, kuba@kernel.org
Subject: Re: [PATCH net-next] net: bcmgenet: check return value after calling platform_get_resource()
Date: Mon, 7 Jun 2021 10:47:18 -0700	[thread overview]
Message-ID: <d4a768d9-dde1-76a5-5d02-80bab7ca5225@gmail.com> (raw)
In-Reply-To: <20210607133837.3579163-1-yangyingliang@huawei.com>
On 6/7/2021 6:38 AM, Yang Yingliang wrote:
> It will cause null-ptr-deref if platform_get_resource() returns NULL,
> we need check the return value.
> 
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian
next prev parent reply	other threads:[~2021-06-07 17:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-07 13:38 [PATCH net-next] net: bcmgenet: check return value after calling platform_get_resource() Yang Yingliang
2021-06-07 17:47 ` Florian Fainelli [this message]
2021-06-07 21:10 ` 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=d4a768d9-dde1-76a5-5d02-80bab7ca5225@gmail.com \
    --to=f.fainelli@gmail.com \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=opendmb@gmail.com \
    --cc=yangyingliang@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;
as well as URLs for NNTP newsgroup(s).