patch-2.4.21 linux-2.4.21/fs/seq_file.c
Next file: linux-2.4.21/fs/super.c
Previous file: linux-2.4.21/fs/select.c
Back to the patch index
Back to the overall index
-  Lines: 11
-  Date:
2003-06-13 07:51:37.000000000 -0700
-  Orig file: 
linux-2.4.20/fs/seq_file.c
-  Orig date: 
2001-11-17 18:16:22.000000000 -0800
diff -urN linux-2.4.20/fs/seq_file.c linux-2.4.21/fs/seq_file.c
@@ -94,8 +94,10 @@
 		m->buf = kmalloc(m->size <<= 1, GFP_KERNEL);
 		if (!m->buf)
 			goto Enomem;
+		m->count = 0;
 	}
 	m->op->stop(m, p);
+	m->count = 0;
 	goto Done;
 Fill:
 	/* they want more? let's try to get some more */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)