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

SVN-Revision: 27358
v19.07.3_mercusys_ac12_duma
Gabor Juhos 13 years ago
parent b3a89652a5
commit 091ea63719

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

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

Loading…
Cancel
Save