mtd/drivers/mtd/chips cfi_cmdset_0001.c,1.109,1.110
Joakim Tjernlund
jocke at infradead.org
Thu Jan 9 11:57:31 EST 2003
Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv1350
Modified Files:
cfi_cmdset_0001.c
Log Message:
fixed point() bug. retlen was always zero.
CVS ----------------------------------------------------------------------
Index: cfi_cmdset_0001.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0001.c,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -r1.109 -r1.110
--- cfi_cmdset_0001.c 8 Jan 2003 00:16:44 -0000 1.109
+++ cfi_cmdset_0001.c 9 Jan 2003 16:57:28 -0000 1.110
@@ -382,6 +382,7 @@
*mtdbuf = map->point(map, from, len);
if(*mtdbuf == NULL)
return -EINVAL; /* can not point this region */
+ *retlen = 0;
/* Now lock the chip(s) to POINT state */
@@ -410,7 +411,6 @@
ofs = 0;
chipnum++;
}
- *retlen = len;
return 0;
}
More information about the linux-mtd-cvs
mailing list