diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2012-09-04 12:45:54 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2012-09-04 12:45:54 -0400 |
commit | c9e67d483776d8d2a5f3f70491161b205930ffe1 (patch) | |
tree | c2c76f9ac0891670c37079c6467505c56815fcd1 | |
parent | 381bf7cad9dbce701c618f8942fd35954952ef39 (diff) |
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
-rw-r--r-- | fs/fuse/dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 7df2b5e8fbe..f4246cfc8d8 100644 --- 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, | |||
1576 | req->pages[req->num_pages] = page; | 1576 | req->pages[req->num_pages] = page; |
1577 | req->num_pages++; | 1577 | req->num_pages++; |
1578 | 1578 | ||
1579 | offset = 0; | ||
1579 | num -= this_num; | 1580 | num -= this_num; |
1580 | total_len += this_num; | 1581 | total_len += this_num; |
1581 | index++; | 1582 | index++; |