mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
fuse: fix retrieve length
commit c9e67d4837 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
04234b3621
commit
fd63204e48
@@ -1524,6 +1524,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++;
|
||||
|
||||
Reference in New Issue
Block a user