diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2012-09-04 18:45:54 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-14 10:00:50 -0700 |
commit | fd63204e4873e9cbabd819ffdc15f3bcd85c6674 (patch) | |
tree | 4fdd5faf5efe3e5fbc55d7b186dcd0f4e73c5aa5 /fs | |
parent | 04234b36211285e5242794b75137f42f177e0ef5 (diff) | |
download | linux-stable-fd63204e4873e9cbabd819ffdc15f3bcd85c6674.tar.gz linux-stable-fd63204e4873e9cbabd819ffdc15f3bcd85c6674.tar.bz2 linux-stable-fd63204e4873e9cbabd819ffdc15f3bcd85c6674.zip |
fuse: fix retrieve length
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>
Diffstat (limited to 'fs')
-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 2aaf3eaaf13d..5c029fb3e087 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -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++; |