aboutsummaryrefslogtreecommitdiffstats
path: root/lib/parser.c
diff options
context:
space:
mode:
authorHui Tang <tanghui20@huawei.com>2022-11-14 17:02:40 +0800
committerMiquel Raynal <miquel.raynal@bootlin.com>2022-11-17 21:59:03 +0100
commit6bdd45d795adf9e73b38ced5e7f750cd199499ff (patch)
treefa2d00ddba48c063b56939d852bd4ccc629f747a /lib/parser.c
parentdt-bindings: mtd: partitions: allow SafeLoader dynamic subpartitions (diff)
downloadlinux-rng-6bdd45d795adf9e73b38ced5e7f750cd199499ff.tar.xz
linux-rng-6bdd45d795adf9e73b38ced5e7f750cd199499ff.zip
mtd: lpddr2_nvm: Fix possible null-ptr-deref
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@huawei.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20221114090240.244172-1-tanghui20@huawei.com
Diffstat (limited to 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions