aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/nand_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 816b5c1fd416..3f24b587304f 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -4171,7 +4171,7 @@ int nand_scan_tail(struct mtd_info *mtd)
4171 * properly set. 4171 * properly set.
4172 */ 4172 */
4173 if (!mtd->bitflip_threshold) 4173 if (!mtd->bitflip_threshold)
4174 mtd->bitflip_threshold = mtd->ecc_strength; 4174 mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4);
4175 4175
4176 /* Check, if we should skip the bad block table scan */ 4176 /* Check, if we should skip the bad block table scan */
4177 if (chip->options & NAND_SKIP_BBTSCAN) 4177 if (chip->options & NAND_SKIP_BBTSCAN)