[PATCH] mtd: tests: abort torturetest on erase errors

Brian Norris computersforpeace at gmail.com
Fri Dec 12 19:29:10 PST 2014


On Fri, Nov 21, 2014 at 10:24:29AM -0800, Brian Norris wrote:
> 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 at gmail.com>
> Cc: Akinobu Mita <akinobu.mita at gmail.com>
> Cc: <stable at vger.kernel.org>

Applied to l2-mtd.git.

Brian



More information about the linux-mtd mailing list