summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2020-05-19 15:00:10 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2020-05-31 10:53:35 +0200
commitb60391eb17b2956ff2fc4c348e5a464da21ff9cb (patch)
tree0fc53bc3416c356bbd16366f3e71e5d768a26fd1 /lib/mpi/mpi-sub-ui.c
parent154298e2a3f6c9ce1d76cdb48d89fd5b107ea1a3 (diff)
mtd: rawnand: oxnas: Unregister all devices on error
On error, the oxnas probe path just frees the device which failed and aborts the probe, leaving unreleased resources. Fix this situation by calling mtd_device_unregister()/nand_cleanup() on these. Fixes: 668592492409 ("mtd: nand: Add OX820 NAND Support") Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-38-miquel.raynal@bootlin.com
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions