mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
fuse: fix retrieve length
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
This commit is contained in:
parent
381bf7cad9
commit
c9e67d4837
@ -1576,6 +1576,7 @@ static int fuse_retrieve(struct fuse_conn *fc, struct inode *inode,
|
|||||||
req->pages[req->num_pages] = page;
|
req->pages[req->num_pages] = page;
|
||||||
req->num_pages++;
|
req->num_pages++;
|
||||||
|
|
||||||
|
offset = 0;
|
||||||
num -= this_num;
|
num -= this_num;
|
||||||
total_len += this_num;
|
total_len += this_num;
|
||||||
index++;
|
index++;
|
||||||
|
Loading…
Reference in New Issue
Block a user