mtd/drivers/mtd/chips cfi_cmdset_0002.c,1.102,1.103

David Woodhouse dwmw2 at infradead.org
Wed Jul 14 12:24:06 EDT 2004


Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv1388/chips

Modified Files:
	cfi_cmdset_0002.c 
Log Message:
remember to reduce len when writing first partial word

Index: cfi_cmdset_0002.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0002.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -r1.102 -r1.103
--- cfi_cmdset_0002.c	14 Jul 2004 05:17:55 -0000	1.102
+++ cfi_cmdset_0002.c	14 Jul 2004 16:24:03 -0000	1.103
@@ -871,6 +871,7 @@
 		ofs += n;
 		buf += n;
 		(*retlen) += n;
+		len -= n;
 
 		if (ofs >> cfi->chipshift) {
 			chipnum ++; 





More information about the linux-mtd-cvs mailing list