mtd: update ops->oobretlen in concat_write_oob
PATCH 1/1 mtd: update ops->oobretlen in concat_write_oob
In concat_read_oob both retlen and oobretlen is updated. concat_write_oob previously only updated retlen.
Signed-off-by Niklas Cassel <[email protected]>
--- drivers/mtd/mtdconcat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/mtdconcat.c +2 -1
@@ -311,7 +311,8 @@ concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops) devops.len = subdev->size - to; err =mtd_write_oob (subdev, to, &devops); - ops->retlen += devops.oobretlen; + ops->retlen += devops.retlen; + ops->oobretlen += devops.oobretlen;if (err)return err;
Signature · 1 line
2.1.4
Brian Norris
AppliedQuoted 4 lines · Niklas Cassel
In
concat_read_oobboth retlen and oobretlen is updated.concat_write_oobpreviously only updated retlen.Signed-off-by Niklas Cassel <[email protected]>
Pushed to l2-mtd.git. Thanks.
Brian