X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/a4cf24d38a15dec9dbc1970b53049af4823ea476..37060bdd689bbe4cc50c9f7d1a9ea9ac533b8276:/package/mtd/src/mtd.c diff --git a/package/mtd/src/mtd.c b/package/mtd/src/mtd.c index 7f5816539..b33582668 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;