diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2020-05-19 15:00:09 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-06-22 09:33:10 +0200 |
commit | 8837f03001de875b0eb6d180a726ac92da6a562e (patch) | |
tree | cccd574f1c49b69119d666af75c876c8a7472d7e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 4d228709a0cc1d2ca1f8d1a4f8620dea45e51e1c (diff) |
mtd: rawnand: oxnas: Fix the probe error path
commit 154298e2a3f6c9ce1d76cdb48d89fd5b107ea1a3 upstream.
nand_release() is supposed be called after MTD device registration.
Here, only nand_scan() happened, so use nand_cleanup() instead.
While at it, be consistent and move the function call in the error
path thanks to a goto statement.
Fixes: 668592492409 ("mtd: nand: Add OX820 NAND Support")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-37-miquel.raynal@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions