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, 19 Jul 2022 17:08:46 +0000 (13:08 -0400)
commitaf4726711f40d6709655a48ed2499d822938b8f5
treee019cafed6b5de92f87a2e2198ca9768ae92b6e5
parentd847696fee2df5c757b3ec8b3934582bd330926d
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