mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
Before using block_isbad() check if mtd->block_isbad() is defined. Calculating pgcnt must be done using pgsize defined to 512 on NOR and mtd->writesize for NAND, not using mtd->writesize directly. Signed-off-by: Morten Thunberg Svendsen <[email protected]> Acked-by: Artem Bityutskiy <[email protected]> Signed-off-by: David Woodhouse <[email protected]>