mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
84d489f64f
Changelog: https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.14 Some manual changes to target/linux/generic/patches-4.4/610- netfilter_match_bypass_default_checks.patch were needed. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
23 lines
675 B
Diff
23 lines
675 B
Diff
--- a/drivers/mtd/nand/mtk_nand.c
|
|
+++ b/drivers/mtd/nand/mtk_nand.c
|
|
@@ -1017,8 +1017,8 @@ static int mtk_nfc_ooblayout_free(struct
|
|
if (section >= eccsteps)
|
|
return -ERANGE;
|
|
|
|
- oob_region->length = fdm->reg_size - fdm->ecc_size;
|
|
- oob_region->offset = section * fdm->reg_size + fdm->ecc_size;
|
|
+ oob_region->length = fdm->reg_size - 1;
|
|
+ oob_region->offset = section * fdm->reg_size + 1;
|
|
|
|
return 0;
|
|
}
|
|
@@ -1058,7 +1058,7 @@ static void mtk_nfc_set_fdm(struct mtk_n
|
|
fdm->reg_size = NFI_FDM_MAX_SIZE;
|
|
|
|
/* bad block mark storage */
|
|
- fdm->ecc_size = 1;
|
|
+ fdm->ecc_size = fdm->reg_size;
|
|
}
|
|
|
|
static void mtk_nfc_set_bad_mark_ctl(struct mtk_nfc_bad_mark_ctl *bm_ctl,
|