git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d862f4
)
pipe: fix check in "set size" fcntl
author
Miklos Szeredi
<mszeredi@suse.cz>
Wed, 9 Jun 2010 07:27:57 +0000
(09:27 +0200)
committer
Jens Axboe
<jaxboe@fusionio.com>
Thu, 10 Jun 2010 17:08:34 +0000
(19:08 +0200)
As it stands this check compares the number of pages to the page size.
This makes no sense and makes the fcntl fail in almost any sane case.
Fix it by checking if nr_pages is not zero (it can become zero only if
arg is too big and round_pipe_size() overflows).
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
fs/pipe.c
patch
|
blob
|
history
diff --cc
fs/pipe.c
Simple merge