X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=fs%2Fseq_file.c;h=6dc4296eed62c5d2a493c5ba3f649c890aa37981;hb=2b0ad0085aa47ace4756aa501274a7de0325c09c;hp=19f532e7d35e9a501256ab64f76a645bf7d6b2e6;hpb=c2b8d9200fc61298cd74b258a453b526ffa74d17;p=cascardo%2Flinux.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; }