mtd/drivers/mtd mtdchar.c,1.46,1.47
Greg Ungerer
gerg at infradead.org
Wed Sep 25 20:04:14 EDT 2002
Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv27846
Modified Files:
mtdchar.c
Log Message:
Corrected arguments to read_ecc and write_ecc in the MEMREADDATA
and MEMWRITEDATA ioctls. The ECC type arg was missing.
Index: mtdchar.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/mtdchar.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- mtdchar.c 20 Sep 2002 13:04:03 -0000 1.46
+++ mtdchar.c 26 Sep 2002 00:04:12 -0000 1.47
@@ -471,7 +471,7 @@
return -EFAULT;
}
- ret = (mtd->write_ecc)(mtd, buf.start, buf.length, &retlen, databuf, NULL);
+ ret = (mtd->write_ecc)(mtd, buf.start, buf.length, &retlen, databuf, NULL, NAND_ECC_NONE);
if (copy_to_user((void *)arg + sizeof(u_int32_t), &retlen, sizeof(u_int32_t)))
ret = -EFAULT;
@@ -505,7 +505,7 @@
if (!databuf)
return -ENOMEM;
- ret = (mtd->read_ecc)(mtd, buf.start, buf.length, &retlen, databuf, NULL);
+ ret = (mtd->read_ecc)(mtd, buf.start, buf.length, &retlen, databuf, NULL, NAND_ECC_NONE);
if (copy_to_user((void *)arg + sizeof(u_int32_t), &retlen, sizeof(u_int32_t)))
ret = -EFAULT;
More information about the linux-mtd-cvs
mailing list