summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2018-05-02 20:16:56 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2018-05-02 21:43:15 +0200
commite76b6312391bdd62e31dc86cb65e478b07b7909e (patch)
tree1c4b03c1d2ae16e14133c207e45da1557e15f0f3 /lib
parentDon't leak MNT_INTERNAL away from internal mounts (diff)
downloadlinux-e76b6312391bdd62e31dc86cb65e478b07b7909e.tar.xz
linux-e76b6312391bdd62e31dc86cb65e478b07b7909e.zip
iov_iter: fix return type of __pipe_get_pages()
It returns -EFAULT and happens to be a helper for pipe_get_pages() whose return type is ssize_t. Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'lib')
-rw-r--r--lib/iov_iter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/iov_iter.c b/lib/iov_iter.c
index 970212670b6a..4d5bf40d399d 100644
--- a/lib/iov_iter.c
+++ b/lib/iov_iter.c
@@ -1012,7 +1012,7 @@ unsigned long iov_iter_gap_alignment(const struct iov_iter *i)
}
EXPORT_SYMBOL(iov_iter_gap_alignment);
-static inline size_t __pipe_get_pages(struct iov_iter *i,
+static inline ssize_t __pipe_get_pages(struct iov_iter *i,
size_t maxsize,
struct page **pages,
int idx,