From: Brian Norris Date: Fri, 21 Nov 2014 18:24:29 +0000 (-0800) Subject: mtd: tests: abort torturetest on erase errors X-Git-Tag: omap-for-v3.19/fixes-rc1~56^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68f29815034e9dc9ed53cad85946c32b07adc8cc;p=pandora-kernel.git 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 Cc: Akinobu Mita Cc: --- Reading git-diff-tree failed