Skip to contentSkip to conversation

mtd: update ops->oobretlen in concat_write_oob

PATCH Applied Niklas Cassel 2 participants 2 messages Jan 20, 2015 – Feb 6, 2015 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/mtd/mtdconcat.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/mtdconcat.c +2 -1
index b900056..d85c946 100644
@@ -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
Applied
#1 lore raw
Quoted 4 lines · Niklas Cassel

In concat_read_oob both retlen and oobretlen is updated. concat_write_oob previously only updated retlen.

Pushed to l2-mtd.git. Thanks.

Brian