summaryrefslogtreecommitdiff
path: root/package/mtd/src
diff options
context:
space:
mode:
Diffstat (limited to 'package/mtd/src')
-rw-r--r--package/mtd/src/mtd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/mtd/src/mtd.c b/package/mtd/src/mtd.c
index 7f5816539b..b33582668f 100644
--- a/package/mtd/src/mtd.c
+++ b/package/mtd/src/mtd.c
@@ -409,6 +409,9 @@ resume:
/* got an EOF marker - this is the place to add some jffs2 data */
skip = mtd_replace_jffs2(mtd, fd, e, jffs2file);
+ /* don't add it again */
+ jffs2file = NULL;
+
w += skip;
e += skip;
skip -= buflen;