summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2018-05-02 21:16:56 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2018-05-02 22:43:15 +0300
commite76b6312391bdd62e31dc86cb65e478b07b7909e (patch)
tree1c4b03c1d2ae16e14133c207e45da1557e15f0f3 /lib
parent16a34adb9392b2fe4195267475ab5b472e55292c (diff)
downloadlinux-e76b6312391bdd62e31dc86cb65e478b07b7909e.tar.xz
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,