fix brown paperbag bug in inlined copy_..._iter()
authorAl Viro <[email protected]>
Mon, 10 Jul 2017 11:40:49 +0000 (07:40 -0400)
committerAl Viro <[email protected]>
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 <[email protected]>
Signed-off-by: Al Viro <[email protected]>
include/linux/uio.h