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)
m->buf = kmalloc(m->size <<= 1, GFP_KERNEL);
if (!m->buf)
goto Enomem;
m->count = 0;
}
m->op->stop(m, p);
m->count = 0;
goto Done;
Fill:
/* 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