Commit fc0f5ac8 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'for-linus' of git://

* 'for-linus' of git://
  9p: Pass the correct end of buffer to p9stat_read
parents 6a99ad4a da7ddd32
......@@ -146,7 +146,7 @@ static int v9fs_dir_readdir(struct file *filp, void *dirent, filldir_t filldir)
while (rdir->head < rdir->tail) {
err = p9stat_read(rdir->buf + rdir->head,
buflen - rdir->head, &st,
rdir->tail - rdir->head, &st,
if (err) {
P9_DPRINTK(P9_DEBUG_VFS, "returned %d\n", err);
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