Commit 86b3176e authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] airo.c broke

But Al fixed it again.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f803ee7a
......@@ -4505,6 +4505,8 @@ static ssize_t proc_read( struct file *file,
len = priv->readlen - pos;
if (copy_to_user(buffer, priv->rbuffer + pos, len))
return -EFAULT;
if (pos + len > priv->writelen)
priv->writelen = pos + len;
*offset = pos + len;
return len;
}
......
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