iov_iter: fix return type of __pipe_get_pages()
authorIlya Dryomov <idryomov@gmail.com>
Wed, 2 May 2018 18:16:56 +0000 (20:16 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 2 May 2018 19:43:15 +0000 (15:43 -0400)
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>
lib/iov_iter.c

index 970212670b6a11bf8e033bd7d0cc0fff34041dc8..4d5bf40d399dc07f68966ff10b637839f0b1f776 100644 (file)
@@ -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,