[PATCH v2] mtd: lpddr2_nvm: Fix possible null-ptr-deref

Miquel Raynal miquel.raynal at bootlin.com
Thu Nov 17 13:16:33 PST 2022

On Mon, 2022-11-14 at 09:02:40 UTC, Hui Tang wrote:
> It will cause null-ptr-deref when resource_size(add_range) invoked,
> if platform_get_resource() returns NULL.
> Fixes: 96ba9dd65788 ("mtd: lpddr: add driver for LPDDR2-NVM PCM memories")
> Signed-off-by: Hui Tang <tanghui20 at huawei.com>
> Acked-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

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


More information about the linux-mtd mailing list