lkml.org 
[lkml]   [2012]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 41/46] fuse: fix retrieve length
    Date
    From: Greg KH <gregkh@linuxfoundation.org>

    3.0-stable review patch. If anyone has any objections, please let me know.

    ------------------

    From: Miklos Szeredi <mszeredi@suse.cz>

    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>

    ---
    fs/fuse/dev.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/fs/fuse/dev.c
    +++ b/fs/fuse/dev.c
    @@ -1524,6 +1524,7 @@ static int fuse_retrieve(struct fuse_con
    req->pages[req->num_pages] = page;
    req->num_pages++;

    + offset = 0;
    num -= this_num;
    total_len += this_num;
    index++;



    \
     
     \ /
      Last update: 2012-09-13 02:21    [W:6.002 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site