fix nand_fill_oob
Subsystems (2)
PATCH 1/1 fix nand_fill_oob
Folks,
inlined is the fix to nand_fill_oob function which prevents it from writing garbage to OOB buffer when ops->len < ops->ooblen.
Signed-off-by Vitaly Wool <[email protected]>
drivers/mtd/nand/nand_base.c +1 -1
@@ -1400,7 +1510,7 @@ static int nand_write_page(struct mtd_instatic uint8_t *nand_fill_oob (struct nand_chip *chip,uint8_t *oob,struct mtd_oob_ops *ops) { -size_t len = ops->ooblen; +size_t len = ops->len;switch (ops->mode) {