summaryrefslogtreecommitdiff
path: root/net/tipc/bcast.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2010-06-09 07:27:57 (GMT)
committerJens Axboe <jaxboe@fusionio.com>2010-06-10 17:08:34 (GMT)
commit6db40cf047a8723095caf79f5569d21b388d7b31 (patch)
treef1bb31671c39ef8cb990ee2c28ef34f7ce8a8aca /net/tipc/bcast.h
parent1d862f41222b7f385bada9f85a67ca5592ffd33e (diff)
downloadlinux-6db40cf047a8723095caf79f5569d21b388d7b31.tar.xz
pipe: fix check in "set size" fcntl
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>
Diffstat (limited to 'net/tipc/bcast.h')
0 files changed, 0 insertions, 0 deletions