X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fcifs-2.6.git;a=blobdiff_plain;f=fs%2Fsplice.c;h=59a941d404d9c60b46a83ced4472ee915a7fe93c;hp=a7568bcc0f9959b22b559ce02b259e8f843d1a3b;hb=92d15c2ccbb3e31a3fc71ad28fdb55e1319383c0;hpb=f20bf6125605acbbc7eb8c9420d7221c91aa83eb diff --git a/fs/splice.c b/fs/splice.c index a7568bcc0f99..59a941d404d9 100644 --- a/fs/splice.c +++ b/fs/splice.c @@ -1335,10 +1335,10 @@ static int pipe_to_user(struct pipe_inode_info *pipe, struct pipe_buffer *buf, if (copy_to_user(sd->u.userptr, src + buf->offset, sd->len)) ret = -EFAULT; + buf->ops->unmap(pipe, buf, src); out: if (ret > 0) sd->u.userptr += ret; - buf->ops->unmap(pipe, buf, src); return ret; }