Commit 4f4b6a13 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] seq_read() fix

Present both in 2.4 and 2.5 ;-/
parent cd03e0b9
...@@ -94,8 +94,10 @@ ssize_t seq_read(struct file *file, char *buf, size_t size, loff_t *ppos) ...@@ -94,8 +94,10 @@ ssize_t seq_read(struct file *file, char *buf, size_t size, loff_t *ppos)
m->buf = kmalloc(m->size <<= 1, GFP_KERNEL); m->buf = kmalloc(m->size <<= 1, GFP_KERNEL);
if (!m->buf) if (!m->buf)
goto Enomem; goto Enomem;
m->count = 0;
} }
m->op->stop(m, p); m->op->stop(m, p);
m->count = 0;
goto Done; goto Done;
Fill: Fill:
/* they want more? let's try to get some more */ /* they want more? let's try to get some more */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment