Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8eb64dc5 authored by Hui Tang's avatar Hui Tang Committed by Greg Kroah-Hartman
Browse files

mtd: lpddr2_nvm: Fix possible null-ptr-deref



[ Upstream commit 6bdd45d795adf9e73b38ced5e7f750cd199499ff ]

It will cause null-ptr-deref when resource_size(add_range) invoked,
if platform_get_resource() returns NULL.

Fixes: 96ba9dd6 ("mtd: lpddr: add driver for LPDDR2-NVM PCM memories")
Signed-off-by: default avatarHui Tang <tanghui20@huawei.com>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20221114090240.244172-1-tanghui20@huawei.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8e51f589
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment