Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;