diff options
Diffstat (limited to 'drivers/mtd/tests/mtd_nandecctest.c')
-rw-r--r-- | drivers/mtd/tests/mtd_nandecctest.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mtd/tests/mtd_nandecctest.c b/drivers/mtd/tests/mtd_nandecctest.c index e579f9027c47..79316159eec6 100644 --- a/drivers/mtd/tests/mtd_nandecctest.c +++ b/drivers/mtd/tests/mtd_nandecctest.c | |||
@@ -9,6 +9,8 @@ | |||
9 | #include <linux/slab.h> | 9 | #include <linux/slab.h> |
10 | #include <linux/mtd/nand_ecc.h> | 10 | #include <linux/mtd/nand_ecc.h> |
11 | 11 | ||
12 | #include "mtd_test.h" | ||
13 | |||
12 | /* | 14 | /* |
13 | * Test the implementation for software ECC | 15 | * Test the implementation for software ECC |
14 | * | 16 | * |
@@ -274,6 +276,10 @@ static int nand_ecc_test_run(const size_t size) | |||
274 | } | 276 | } |
275 | pr_info("ok - %s-%zd\n", | 277 | pr_info("ok - %s-%zd\n", |
276 | nand_ecc_test[i].name, size); | 278 | nand_ecc_test[i].name, size); |
279 | |||
280 | err = mtdtest_relax(); | ||
281 | if (err) | ||
282 | break; | ||
277 | } | 283 | } |
278 | error: | 284 | error: |
279 | kfree(error_data); | 285 | kfree(error_data); |