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

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)