projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a99ad4
)
9p: Pass the correct end of buffer to p9stat_read
author
Latchesar Ionkov
<lucho@ionkov.net>
Mon, 19 Jul 2010 20:40:03 +0000
(15:40 -0500)
committer
Jesper Nilsson
<jesper.nilsson@axis.com>
Wed, 4 Aug 2010 10:58:55 +0000
(12:58 +0200)
Pass the correct end of the buffer to p9stat_read.
Signed-off-by: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/vfs_dir.c
patch
|
blob
|
history
diff --git
a/fs/9p/vfs_dir.c
b/fs/9p/vfs_dir.c
index
d61e3b2
..
36d961f
100644
(file)
--- 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);