All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Yang Yingliang <yangyingliang@huawei.com>,
	linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org,
	linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org,
	linaro-mm-sig@lists.linaro.org
Cc: Miquel Raynal <miquel.raynal@bootlin.com>, richard@nod.at
Subject: Re: [PATCH 3/3] mtd: rawnand: tmio: check return value after calling platform_get_resource()
Date: Wed, 27 Apr 2022 17:26:05 +0200	[thread overview]
Message-ID: <20220427152605.100908-1-miquel.raynal@bootlin.com> (raw)
In-Reply-To: <20220426084913.4021868-3-yangyingliang@huawei.com>

On Tue, 2022-04-26 at 08:49:13 UTC, 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>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

WARNING: multiple messages have this Message-ID (diff)
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Yang Yingliang <yangyingliang@huawei.com>,
	linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org,
	linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org,
	linaro-mm-sig@lists.linaro.org
Cc: Miquel Raynal <miquel.raynal@bootlin.com>, richard@nod.at
Subject: Re: [PATCH 3/3] mtd: rawnand: tmio: check return value after calling platform_get_resource()
Date: Wed, 27 Apr 2022 17:26:05 +0200	[thread overview]
Message-ID: <20220427152605.100908-1-miquel.raynal@bootlin.com> (raw)
In-Reply-To: <20220426084913.4021868-3-yangyingliang@huawei.com>

On Tue, 2022-04-26 at 08:49:13 UTC, 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>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

WARNING: multiple messages have this Message-ID (diff)
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Yang Yingliang <yangyingliang@huawei.com>,
	linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org,
	linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org,
	linaro-mm-sig@lists.linaro.org
Cc: richard@nod.at, Miquel Raynal <miquel.raynal@bootlin.com>
Subject: Re: [PATCH 3/3] mtd: rawnand: tmio: check return value after calling platform_get_resource()
Date: Wed, 27 Apr 2022 17:26:05 +0200	[thread overview]
Message-ID: <20220427152605.100908-1-miquel.raynal@bootlin.com> (raw)
In-Reply-To: <20220426084913.4021868-3-yangyingliang@huawei.com>

On Tue, 2022-04-26 at 08:49:13 UTC, 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>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

  reply	other threads:[~2022-04-27 15:26 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-26  8:49 [PATCH 1/3] mtd: rawnand: cadence: fix possible null-ptr-deref in cadence_nand_dt_probe() Yang Yingliang
2022-04-26  8:49 ` Yang Yingliang
2022-04-26  8:49 ` Yang Yingliang
2022-04-26  8:49 ` [PATCH 2/3] mtd: rawnand: intel: fix possible null-ptr-deref in ebu_nand_probe() Yang Yingliang
2022-04-26  8:49   ` Yang Yingliang
2022-04-26  8:49   ` Yang Yingliang
2022-04-27 15:26   ` Miquel Raynal
2022-04-27 15:26     ` Miquel Raynal
2022-04-27 15:26     ` Miquel Raynal
2022-04-26  8:49 ` [PATCH 3/3] mtd: rawnand: tmio: check return value after calling platform_get_resource() Yang Yingliang
2022-04-26  8:49   ` Yang Yingliang
2022-04-26  8:49   ` Yang Yingliang
2022-04-27 15:26   ` Miquel Raynal [this message]
2022-04-27 15:26     ` Miquel Raynal
2022-04-27 15:26     ` Miquel Raynal
2022-04-27 15:26 ` [PATCH 1/3] mtd: rawnand: cadence: fix possible null-ptr-deref in cadence_nand_dt_probe() Miquel Raynal
2022-04-27 15:26   ` Miquel Raynal
2022-04-27 15:26   ` Miquel Raynal

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=20220427152605.100908-1-miquel.raynal@bootlin.com \
    --to=miquel.raynal@bootlin.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linaro-mm-sig@lists.linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=richard@nod.at \
    --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 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.