[PATCH] trivial: fix oobavail for partitions

Vitaly Wool vwool at ru.mvista.com
Tue Nov 29 10:03:20 EST 2005


Hi,

this patch fixes oobavail propagation to partitions. May I commit this one?

Vitaly

diff -uNr linux-2.6.10.orig/drivers/mtd/mtdpart.c linux-2.6.10.nand/drivers/mtd/mtdpart.c
--- linux-2.6.10.orig/drivers/mtd/mtdpart.c	2005-11-24 15:58:37.000000000 +0300
+++ linux-2.6.10.nand/drivers/mtd/mtdpart.c	2005-11-24 16:33:21.000000000 +0300
@@ -400,6 +400,7 @@
 		slave->mtd.size = parts[i].size;
 		slave->mtd.oobblock = master->oobblock;
 		slave->mtd.oobsize = master->oobsize;
+		slave->mtd.oobavail = master->oobavail;
 		slave->mtd.ecctype = master->ecctype;
 		slave->mtd.eccsize = master->eccsize;
 





More information about the linux-mtd mailing list