aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2017-04-10 10:35:17 +0200
committerBoris Brezillon <[email protected]>2017-06-01 10:09:27 +0200
commit4d02423e9afe6c46142ce98bbcaf5167316dbfbf (patch)
tree8022670cace04e775873f5f45dca32b83444009b /tools/perf/scripts/python/check-perf-trace.py
parentd7e578c8118113789b7abd2977e208c64d6f8465 (diff)
mtd: nand: gpmi: Fix gpmi_nand_init() error path
The GPMI driver is wrongly assuming that nand_release() can safely be called on an uninitialized/unregistered NAND device. Add a new err_nand_cleanup label in the error path and only execute if nand_scan_tail() succeeded. Note that we now call nand_cleanup() instead of nand_release() (nand_release() is actually grouping the mtd_device_unregister() and nand_cleanup() in one call) because there's no point in trying to unregister a device that has never been registered. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Marek Vasut <[email protected]> Acked-by: Han Xu <[email protected]> Reviewed-by: Marek Vasut <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions