iov_iter_advance(): use consistent semantics for move past the end
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 24 Apr 2021 02:24:08 +0000 (22:24 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 3 Jun 2021 14:36:52 +0000 (10:36 -0400)
commit3b3fc051cd2cba42bf736fa62780857d251a1236
tree964dbf1b081691dc1fbddadf08e25715deafae00
parent0e8f0d67401589a141950856902c7d0ec8d9c985
iov_iter_advance(): use consistent semantics for move past the end

asking to advance by more than we have left in the iov_iter should
move to the very end; it should *not* leave negative i->count and
it should not spew into syslog, etc. - it's a legitimate operation.

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