Skip to content
Commit 7392ed17 authored by Al Viro's avatar Al Viro
Browse files

iov_iter_get_pages{,_alloc}(): cap the maxsize with MAX_RW_COUNT



All callers can and should handle iov_iter_get_pages() returning
fewer pages than requested.  All in-kernel ones do.  And it makes
the arithmetical overflow analysis much simpler...

Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 18fa9af7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment