diff options
author | Brian Norris <computersforpeace@gmail.com> | 2014-11-21 10:24:29 -0800 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-12-12 19:28:43 -0800 |
commit | 68f29815034e9dc9ed53cad85946c32b07adc8cc (patch) | |
tree | 7b1b0cad1e4d53beacff83faafc5f457a1dcb8ac /drivers/memory | |
parent | 92b633a8a482c4bc1ff3b7cffdcace7836861554 (diff) | |
download | blackbird-op-linux-68f29815034e9dc9ed53cad85946c32b07adc8cc.tar.gz blackbird-op-linux-68f29815034e9dc9ed53cad85946c32b07adc8cc.zip |
mtd: tests: abort torturetest on erase errors
The torture test should quit once it actually induces an error in the
flash. This step was accidentally removed during refactoring.
Without this fix, the torturetest just continues infinitely, or until
the maximum cycle count is reached. e.g.:
...
[ 7619.218171] mtd_test: error -5 while erasing EB 100
[ 7619.297981] mtd_test: error -5 while erasing EB 100
[ 7619.377953] mtd_test: error -5 while erasing EB 100
[ 7619.457998] mtd_test: error -5 while erasing EB 100
[ 7619.537990] mtd_test: error -5 while erasing EB 100
...
Fixes: 6cf78358c94f ("mtd: mtd_torturetest: use mtd_test helpers")
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Cc: <stable@vger.kernel.org>
Diffstat (limited to 'drivers/memory')
0 files changed, 0 insertions, 0 deletions