All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Alex Smith <alex.smith@imgtec.com>,
	Paul Cercueil <paul@crapouillou.net>,
	Zhang Changzhong <zhangchangzhong@huawei.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Cc: Krzysztof Kozlowski <krzk@kernel.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] memory: jz4780_nemc: Fix potential NULL dereference in jz4780_nemc_probe()
Date: Sat,  5 Dec 2020 15:00:37 +0100	[thread overview]
Message-ID: <160717677394.8204.5219052683887032938.b4-ty@kernel.org> (raw)
In-Reply-To: <1607070717-32880-1-git-send-email-zhangchangzhong@huawei.com>

On Fri, 4 Dec 2020 16:31:57 +0800, Zhang Changzhong wrote:
> platform_get_resource() may fail and return NULL, so we should
> better check it's return value to avoid a NULL pointer dereference
> a bit later in the code.
> 
> This is detected by Coccinelle semantic patch.
> 
> @@
> expression pdev, res, n, t, e, e1, e2;
> @@
> 
> [...]

Applied, thanks!

[1/1] memory: jz4780_nemc: Fix potential NULL dereference in jz4780_nemc_probe()
      commit: 4bfa07300b9334b487ed4f3d4901c35ebb31b7ca

Best regards,
-- 
Krzysztof Kozlowski <krzk@kernel.org>

      parent reply	other threads:[~2020-12-05 15:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-04  8:31 [PATCH] memory: jz4780_nemc: Fix potential NULL dereference in jz4780_nemc_probe() Zhang Changzhong
2020-12-04 10:09 ` Paul Cercueil
2020-12-05 14:00 ` Krzysztof Kozlowski [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=160717677394.8204.5219052683887032938.b4-ty@kernel.org \
    --to=krzk@kernel.org \
    --cc=Zubair.Kakakhel@imgtec.com \
    --cc=alex.smith@imgtec.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paul@crapouillou.net \
    --cc=zhangchangzhong@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 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.