Upgrade to 4.4.50-rt62
[kvmfornfv.git] / kernel / fs / seq_file.c
index e85664b..d672e2f 100644 (file)
@@ -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;
        }