projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cbe67f
)
fuse: fix retrieve length
author
Miklos Szeredi
<mszeredi@suse.cz>
Tue, 4 Sep 2012 16:45:54 +0000
(18:45 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 14 Sep 2012 17:00:32 +0000
(10:00 -0700)
commit
c9e67d483776d8d2a5f3f70491161b205930ffe1
upstream.
In some cases fuse_retrieve() would return a short byte count if offset was
non-zero. The data returned was correct, though.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/fuse/dev.c
patch
|
blob
|
history
diff --git
a/fs/fuse/dev.c
b/fs/fuse/dev.c
index 7df2b5e8fbe187af6599504f935d1ed463a40c64..f4246cfc8d876db6ac39a6ef058b144c73d503af 100644
(file)
--- a/
fs/fuse/dev.c
+++ b/
fs/fuse/dev.c
@@
-1576,6
+1576,7
@@
static int fuse_retrieve(struct fuse_conn *fc, struct inode *inode,
req->pages[req->num_pages] = page;
req->num_pages++;
+ offset = 0;
num -= this_num;
total_len += this_num;
index++;