diff options
-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 e95a36228863..02c39ae719b6 100644 --- a/fs/splice.c +++ b/fs/splice.c | |||
@@ -1390,10 +1390,10 @@ static int pipe_to_user(struct pipe_inode_info *pipe, struct pipe_buffer *buf, | |||
1390 | if (copy_to_user(sd->u.userptr, src + buf->offset, sd->len)) | 1390 | if (copy_to_user(sd->u.userptr, src + buf->offset, sd->len)) |
1391 | ret = -EFAULT; | 1391 | ret = -EFAULT; |
1392 | 1392 | ||
1393 | buf->ops->unmap(pipe, buf, src); | ||
1393 | out: | 1394 | out: |
1394 | if (ret > 0) | 1395 | if (ret > 0) |
1395 | sd->u.userptr += ret; | 1396 | sd->u.userptr += ret; |
1396 | buf->ops->unmap(pipe, buf, src); | ||
1397 | return ret; | 1397 | return ret; |
1398 | } | 1398 | } |
1399 | 1399 | ||