mtd/fs/jffs2 writev.c,1.2,1.3

David Woodhouse dwmw2 at infradead.org
Thu Aug 8 04:35:24 EDT 2002


Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv1124

Modified Files:
	writev.c 
Log Message:
Check return value of mtd->write()


Index: writev.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/writev.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- writev.c	20 May 2002 14:56:39 -0000	1.2
+++ writev.c	8 Aug 2002 08:35:21 -0000	1.3
@@ -28,7 +28,7 @@
 	for (i=0; i<count; i++) {
 		if (!vecs[i].iov_len)
 			continue;
-		mtd->write(mtd, to, vecs[i].iov_len, &thislen, vecs[i].iov_base);
+		ret = mtd->write(mtd, to, vecs[i].iov_len, &thislen, vecs[i].iov_base);
 		totlen += thislen;
 		if (ret || thislen != vecs[i].iov_len)
 			break;





More information about the linux-mtd-cvs mailing list