fix brown paperbag bug in inlined copy_..._iter()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 10 Jul 2017 11:40:49 +0000 (07:40 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 10 Jul 2017 11:40:49 +0000 (07:40 -0400)
commitc43aeb198048f64abda8655fdcdebe71cf1877ba
treec5bfb5b0027c5d27766b0d29f120a56e04313198
parentf263fbb8d60824993c1b64385056a3cfdbb21d45
fix brown paperbag bug in inlined copy_..._iter()

"copied nothing" == "return 0", not "return full size".

Fixes: aa28de275a24 "iov_iter/hardening: move object size checks to inlined part"
Spotted-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/uio.h