projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16a34ad
)
iov_iter: fix return type of __pipe_get_pages()
author
Ilya Dryomov
<idryomov@gmail.com>
Wed, 2 May 2018 18:16:56 +0000
(20:16 +0200)
committer
Al 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
patch
|
blob
|
history
diff --git
a/lib/iov_iter.c
b/lib/iov_iter.c
index 970212670b6a11bf8e033bd7d0cc0fff34041dc8..4d5bf40d399dc07f68966ff10b637839f0b1f776 100644
(file)
--- 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 s
s
ize_t __pipe_get_pages(struct iov_iter *i,
size_t maxsize,
struct page **pages,
int idx,