diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-07-27 14:32:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-07-27 14:32:59 -0700 |
commit | fc0f5ac8fe693d1b05f5a928cc48135d1c8b7f2e (patch) | |
tree | ceca515ce66fb883247119953c62c9dc7e52b7df | |
parent | 6a99ad4a2e1b1693ffe8e40cc0dddfc633ce2a50 (diff) | |
parent | da7ddd3296505b4cb46685e1bbf7d0075b3cd4f1 (diff) | |
download | linux-fc0f5ac8fe693d1b05f5a928cc48135d1c8b7f2e.tar.bz2 |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs:
9p: Pass the correct end of buffer to p9stat_read
-rw-r--r-- | fs/9p/vfs_dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/vfs_dir.c b/fs/9p/vfs_dir.c index d61e3b28ce37..36d961f342af 100644 --- a/fs/9p/vfs_dir.c +++ b/fs/9p/vfs_dir.c @@ -146,7 +146,7 @@ static int v9fs_dir_readdir(struct file *filp, void *dirent, filldir_t filldir) while (rdir->head < rdir->tail) { p9stat_init(&st); err = p9stat_read(rdir->buf + rdir->head, - buflen - rdir->head, &st, + rdir->tail - rdir->head, &st, fid->clnt->proto_version); if (err) { P9_DPRINTK(P9_DEBUG_VFS, "returned %d\n", err); |