[PATCH 3/3] mtd: rawnand: tmio: check return value after calling platform_get_resource()

Miquel Raynal miquel.raynal at bootlin.com
Wed Apr 27 08:26:05 PDT 2022


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 at huawei.com>

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

Miquel



More information about the linux-mtd mailing list