diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-06-17 15:15:14 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2022-08-08 22:37:20 -0400 |
commit | c81ce28df500b04444ef97dc82a7b0299ce717e8 (patch) | |
tree | e7987013cb4c73a500219d7d80eda6b692b030ad /lib/kstrtox.h | |
parent | 91329559eb07c9b12c7ce80e893ad39579c40aa2 (diff) |
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>
Diffstat (limited to 'lib/kstrtox.h')
0 files changed, 0 insertions, 0 deletions