projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
381bf7c
)
fuse: fix retrieve length
author
Miklos Szeredi
<mszeredi@suse.cz>
Tue, 4 Sep 2012 16:45:54 +0000
(18:45 +0200)
committer
Miklos Szeredi
<mszeredi@suse.cz>
Tue, 4 Sep 2012 16:45:54 +0000
(18:45 +0200)
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>
Cc: stable@vger.kernel.org
fs/fuse/dev.c
patch
|
blob
|
blame
|
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++;