]> git.baikalelectronics.ru Git - kernel.git/commit
rw_verify_area(): saner calling conventions
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 1 Apr 2016 01:48:20 +0000 (21:48 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 3 Apr 2016 23:51:39 +0000 (19:51 -0400)
commitbf1e68e632f2456bc7e3484db337d60cd34bc92f
treeac9b46ce9b1d9e24e8158bc9577f061e3aaaaf3a
parentcf5fde455806a6153a191c6bff0d8c557a9eb800
rw_verify_area(): saner calling conventions

Lift length capping into the few callers that care about it.  Most of
them treat all non-negatives as "success" and ignore the capped value,
and with good reasons.

Make rw_verify_area() return 0 on success.

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