lkml.org 
[lkml]   [2014]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] btrfs: fix sparse address space warnings
On Sun, Sep 28, 2014 at 01:48:11AM -0700, Omar Sandoval wrote:
> The buffer passed to vfs_write in send and several casts of ioctl fields are
> missing the __user annotation. Also fixes a couple of related trivial style
> issues.
>
> Signed-off-by: Omar Sandoval <osandov@osandov.com>

Reviewed-by: David Sterba <dsterba@suse.cz>

> @@ -639,8 +640,7 @@ static int send_header(struct send_ctx *sctx)
> - return write_buf(sctx->send_filp, &hdr, sizeof(hdr),
> - &sctx->send_off);
> + return write_buf(sctx->send_filp, &hdr, sizeof(hdr), &sctx->send_off);

> ret = write_buf(sctx->send_filp, sctx->send_buf, sctx->send_size,
> - &sctx->send_off);
> + &sctx->send_off);

Please do not fold unrelated changes.


\
 
 \ /
  Last update: 2014-09-29 18:21    [W:0.134 / U:1.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site