diff options
| author | Miquel Raynal <miquel.raynal@bootlin.com> | 2020-05-19 15:00:09 +0200 |
|---|---|---|
| committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2020-05-31 10:53:35 +0200 |
| commit | 154298e2a3f6c9ce1d76cdb48d89fd5b107ea1a3 (patch) | |
| tree | 0a8e8e9fa34d267d630fbcb9e1bee06a6f1a2d98 /tools/perf/scripts/python | |
| parent | mtd: rawnand: oxnas: Keep track of registered devices (diff) | |
| download | linux-154298e2a3f6c9ce1d76cdb48d89fd5b107ea1a3.tar.gz linux-154298e2a3f6c9ce1d76cdb48d89fd5b107ea1a3.zip | |
mtd: rawnand: oxnas: Fix the probe error path
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
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
