diff options
author | 2018-04-21 20:00:34 +0200 | |
---|---|---|
committer | 2018-04-29 08:56:42 +0200 | |
commit | 39b77c586e179db03d8cdbc448d4a0fc22f8b13a (patch) | |
tree | c82f3816cba75bd42a1c53afa04261eb135f03eb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mtd: onenand: simplify getting .drvdata (diff) | |
download | wireguard-linux-39b77c586e179db03d8cdbc448d4a0fc22f8b13a.tar.xz wireguard-linux-39b77c586e179db03d8cdbc448d4a0fc22f8b13a.zip |
mtd: rawnand: fsl_elbc: fix probe function error path
An error after nand_scan_tail() should trigger a nand_cleanup().
The helper mtd_device_parse_register() returns an error code that should
be checked and nand_cleanup() called accordingly.
However, in this driver, fsl_elbc_chip_remove() which is called upon
error already triggers a nand_release() which is wrong, because a
nand_release() should be triggered only if an mtd_register() succeeded.
Move the nand_release() call out of the fsl_elbc_chip_remove() and put
it back in the *_remove() hook.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions