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:
e76b631
)
iov_iter: fix memory leak in pipe_get_pages_alloc()
author
Ilya Dryomov
<idryomov@gmail.com>
Wed, 2 May 2018 18:16:57 +0000
(20:16 +0200)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 2 May 2018 19:43:19 +0000
(15:43 -0400)
Make n signed to avoid leaking the pages array if __pipe_get_pages()
fails to allocate any pages.
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 4d5bf40d399dc07f68966ff10b637839f0b1f776..fdae394172fa78efaf3637266492c5a5823ce41a 100644
(file)
--- a/
lib/iov_iter.c
+++ b/
lib/iov_iter.c
@@
-1102,7
+1102,7
@@
static ssize_t pipe_get_pages_alloc(struct iov_iter *i,
size_t *start)
{
struct page **p;
- size_t n;
+ s
s
ize_t n;
int idx;
int npages;