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

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=mtd
PKG_RELEASE:=15
PKG_RELEASE:=16
PKG_BUILD_DIR := $(KERNEL_BUILD_DIR)/$(PKG_NAME)
STAMP_PREPARED := $(STAMP_PREPARED)_$(call confvar,CONFIG_MTD_REDBOOT_PARTS)

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;