X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=fs%2Fseq_file.c;h=d672e2fec459116cfe67688fd679e30187e80f70;hb=d4686ea76bd19b81ed89184f9cc401da36a9573f;hp=e85664b7c7d963522fd7efc938a3d96a27edc651;hpb=a30b7ca2894994e4e2f2e06811ee67fa637bca2e;p=firefly-linux-kernel-4.4.55.git diff --git a/fs/seq_file.c b/fs/seq_file.c index e85664b7c7d9..d672e2fec459 100644 --- a/fs/seq_file.c +++ b/fs/seq_file.c @@ -222,8 +222,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; }