X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=fs%2Fseq_file.c;h=6dc4296eed62c5d2a493c5ba3f649c890aa37981;hb=46626600d120dc48ab605265677b858506a81011;hp=19f532e7d35e9a501256ab64f76a645bf7d6b2e6;hpb=4cae85bed43d890f840019e2d21e39f96430802a;p=linux-2.6-microblaze.git diff --git a/fs/seq_file.c b/fs/seq_file.c index 19f532e7d35e..6dc4296eed62 100644 --- a/fs/seq_file.c +++ b/fs/seq_file.c @@ -223,8 +223,10 @@ ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) size -= n; buf += n; copied += n; - if (!m->count) + if (!m->count) { + m->from = 0; m->index++; + } if (!size) goto Done; }