diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-07-02 08:38:00 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-07-02 08:38:00 +0000 |
commit | 033d9397ae4e0291e077650e0314a4c72770be24 (patch) | |
tree | 7f85f0fc1b401e4ed7a6a2810a42a48d7c6d6250 /package/mtd/src | |
parent | b56e4c784ad53654d64016d3f2b3b85c7e08343d (diff) | |
download | upstream-033d9397ae4e0291e077650e0314a4c72770be24.tar.gz upstream-033d9397ae4e0291e077650e0314a4c72770be24.tar.bz2 upstream-033d9397ae4e0291e077650e0314a4c72770be24.zip |
package/mtd: don't append jffs2 data multiple times
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27358 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mtd/src')
-rw-r--r-- | package/mtd/src/mtd.c | 3 |
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; |