commit: c9e67d483776d8d2a5f3f70491161b205930ffe1 From: Miklos Szeredi <[email protected]> Date: Tue, 4 Sep 2012 18:45:54 +0200 Subject: 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 <[email protected]> Cc: [email protected] --- 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 7df2b5e..f4246cf 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, req->pages[req->num_pages] = page; req->num_pages++; + offset = 0; num -= this_num; total_len += this_num; index++; -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
