summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/tests/subpagetest.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/tests/subpagetest.c')
-rw-r--r--drivers/mtd/tests/subpagetest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/tests/subpagetest.c b/drivers/mtd/tests/subpagetest.c
index aecc6ce5a9e1..fa2519ad2435 100644
--- a/drivers/mtd/tests/subpagetest.c
+++ b/drivers/mtd/tests/subpagetest.c
@@ -102,7 +102,7 @@ static int write_eraseblock2(int ebnum)
if (unlikely(err || written != subpgsize * k)) {
pr_err("error: write failed at %#llx\n",
(long long)addr);
- if (written != subpgsize) {
+ if (written != subpgsize * k) {
pr_err(" write size: %#x\n",
subpgsize * k);
pr_err(" written: %#08zx\n",