summaryrefslogtreecommitdiff
path: root/drivers/mtd/tests/readtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/tests/readtest.c')
-rw-r--r--drivers/mtd/tests/readtest.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mtd/tests/readtest.c b/drivers/mtd/tests/readtest.c
index a54cf1511114..a3196b750a22 100644
--- a/drivers/mtd/tests/readtest.c
+++ b/drivers/mtd/tests/readtest.c
@@ -190,7 +190,10 @@ static int __init mtd_readtest_init(void)
if (!err)
err = ret;
}
- cond_resched();
+
+ err = mtdtest_relax();
+ if (err)
+ goto out;
}
if (err)