Skip to content
Commit 161246ec authored by Miquel Raynal's avatar Miquel Raynal
Browse files

mtd: rawnand: nandsim: Free the allocated device on error in ns_init()



The nandsim device is allocated and initialized inside ns_init() by a
call to ns_alloc_device(), free it on error.

Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200525085851.17682-10-miquel.raynal@bootlin.com
parent 52bc51c5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment