mtd: mtdpart: check for subpartitions parsing result
authorRafał Miłecki <rafal@milecki.pl>
Wed, 27 Sep 2023 20:26:57 +0000 (22:26 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 16 Oct 2023 08:50:32 +0000 (10:50 +0200)
commit5c2f7727d437cd42033d13ebc8b3d74b9fe65712
tree5815a8e619dd7a90be4af2740e3c6105bb048a01
parent8baba8d52ff5081e8c3c383132af269ba8e2f458
mtd: mtdpart: check for subpartitions parsing result

parse_mtd_partitions() may return an error so it should be checked and
optionally passed up

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230927202657.27169-1-zajec5@gmail.com
drivers/mtd/mtdpart.c