Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9e67d48 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

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: default avatarMiklos Szeredi <mszeredi@suse.cz>
Cc: stable@vger.kernel.org
parent 381bf7ca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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++;