]> git.baikalelectronics.ru Git - kernel.git/commit
iov_iter_get_pages(): sanity-check arguments
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 17 Jun 2022 19:15:14 +0000 (15:15 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 9 Aug 2022 02:37:20 +0000 (22:37 -0400)
commitc81ce28df500b04444ef97dc82a7b0299ce717e8
treee7987013cb4c73a500219d7d80eda6b692b030ad
parent91329559eb07c9b12c7ce80e893ad39579c40aa2
iov_iter_get_pages(): sanity-check arguments

zero maxpages is bogus, but best treated as "just return 0";
NULL pages, OTOH, should be treated as a hard bug.

get rid of now completely useless checks in xarray_get_pages{,_alloc}().

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
lib/iov_iter.c