mtd/drivers/mtd/devices ramtd.c,1.2,1.3
joern at infradead.org
joern at infradead.org
Fri May 20 10:45:37 EDT 2005
Update of /home/cvs/mtd/drivers/mtd/devices
In directory phoenix.infradead.org:/home/joern/mtd/drivers/mtd/devices
Modified Files:
ramtd.c
Log Message:
Fix stupid non-initialization bug in read().
Index: ramtd.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/ramtd.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ramtd.c 20 May 2005 12:41:26 -0000 1.2
+++ ramtd.c 20 May 2005 14:45:34 -0000 1.3
@@ -77,6 +77,7 @@
if (len > mtd->size - from)
len = mtd->size - from;
+ *retlen = 0;
while (len) {
u32 page = from / PAGE_SIZE;
u32 ofs = from % PAGE_SIZE;
@@ -110,7 +111,6 @@
len = mtd->size - to;
*retlen = 0;
-
while (len) {
u32 page = to / PAGE_SIZE;
u32 ofs = to % PAGE_SIZE;
More information about the linux-mtd-cvs
mailing list