aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/tests/torturetest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mtd/tests/torturetest.c b/drivers/mtd/tests/torturetest.c
index eeab96973cf0..b55bc52a1340 100644
--- a/drivers/mtd/tests/torturetest.c
+++ b/drivers/mtd/tests/torturetest.c
@@ -264,7 +264,9 @@ static int __init tort_init(void)
264 int i; 264 int i;
265 void *patt; 265 void *patt;
266 266
267 mtdtest_erase_good_eraseblocks(mtd, bad_ebs, eb, ebcnt); 267 err = mtdtest_erase_good_eraseblocks(mtd, bad_ebs, eb, ebcnt);
268 if (err)
269 goto out;
268 270
269 /* Check if the eraseblocks contain only 0xFF bytes */ 271 /* Check if the eraseblocks contain only 0xFF bytes */
270 if (check) { 272 if (check) {