[PATCH][MTD][OneNAND]Update oobretlen in onenand_write_ops_nolock

rohit h hrohit85 at gmail.com
Mon Jun 16 13:44:02 EDT 2008


We are missing updating the oobretlen return parameter
in onenand_write_ops_nolock. This patch fixes it.
Regards,
Rohit H
Signed-off-by: Rohit H <hrohit85 at gmail.com>
---
--- a/drivers/mtd/onenand/onenand_base.c	2008-05-30 13:04:59.000000000 +0530
+++ b/drivers/mtd/onenand/onenand_base.c	2008-06-16 22:27:02.000000000 +0530
@@ -1554,6 +1554,7 @@ static int onenand_write_ops_nolock(stru
 	}

 	ops->retlen = written;
+	ops->oobretlen = oobwritten;

 	return ret;
 }



More information about the linux-mtd mailing list