Commit d164ea32 authored by Niklas Cassel's avatar Niklas Cassel Committed by Brian Norris

mtd: concat: set the return lengths properly

In concat_read_oob both retlen and oobretlen should be updated.
concat_write_oob previously only (improperly) updated retlen.
Signed-off-by: default avatarNiklas Cassel <niklass@axis.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent be802bf9
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment