package/mtd: don't append jffs2 data multiple times

SVN-Revision: 27358
This commit is contained in:
Gabor Juhos
2011-07-02 08:38:00 +00:00
parent b3a89652a5
commit 091ea63719
2 changed files with 4 additions and 1 deletions

View File

@@ -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;