fuse: fix fuse_retrieve
authorMiklos Szeredi <mszeredi@suse.cz>
Tue, 13 Dec 2011 09:36:59 +0000 (10:36 +0100)
committerMiklos Szeredi <mszeredi@suse.cz>
Tue, 13 Dec 2011 09:36:59 +0000 (10:36 +0100)
Fix two bugs in fuse_retrieve():

 - retrieving more than one page would yield repeated instances of the
   first page

 - if more than FUSE_MAX_PAGES_PER_REQ pages were requested than the
   request page array would overflow

fuse_retrieve() was added in 2.6.36 and these bugs had been there since the
beginning.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
CC: stable@vger.kernel.org

No differences found