mtd: rawnand: nandsim: Manage lists on error in ns_init_module()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 25 May 2020 08:58:49 +0000 (10:58 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 31 May 2020 08:53:40 +0000 (10:53 +0200)
commit73f2b68c51f4f6c3dbe621d263d6fd32526f2faf
tree9d2061c218a122ff1894052cfa64f7d83a392f36
parentdc2733dea2be78e03df1fbb5816b59d852b2291c
mtd: rawnand: nandsim: Manage lists on error in ns_init_module()

Lists are filled with calls to ns_parse_weakblocks(),
ns_parse_weakpages() and ns_parse_gravepages(). Handle them in the
error path, all at the same time.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200525085851.17682-16-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/nandsim.c