diff options
Diffstat (limited to 'fs/splice.c')
-rw-r--r-- | fs/splice.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
1335 | if (copy_to_user(sd->u.userptr, src + buf->offset, sd->len)) | 1335 | if (copy_to_user(sd->u.userptr, src + buf->offset, sd->len)) |
1336 | ret = -EFAULT; | 1336 | ret = -EFAULT; |
1337 | 1337 | ||
1338 | buf->ops->unmap(pipe, buf, src); | ||
1338 | out: | 1339 | out: |
1339 | if (ret > 0) | 1340 | if (ret > 0) |
1340 | sd->u.userptr += ret; | 1341 | sd->u.userptr += ret; |
1341 | buf->ops->unmap(pipe, buf, src); | ||
1342 | return ret; | 1342 | return ret; |
1343 | } | 1343 | } |
1344 | 1344 | ||