summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-02-18 23:30:05 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2020-06-03 22:59:31 +0200
commit5ea75ae6ae60d13dfa35fd5d2e2a81824cba6662 (patch)
tree6283d39b76e29f207942b5e8be30265e4f75e75d
parentTEST_ACCESS_OK _never_ had been checked anywhere (diff)
downloadlinux-5ea75ae6ae60d13dfa35fd5d2e2a81824cba6662.tar.xz
linux-5ea75ae6ae60d13dfa35fd5d2e2a81824cba6662.zip
user_regset_copyout_zero(): use clear_user()
that's the only caller of __clear_user() in generic code, and it's not hot enough to bother with skipping access_ok(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--include/linux/regset.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/regset.h b/include/linux/regset.h
index bf0243779738..46d6ae68c455 100644
--- a/include/linux/regset.h
+++ b/include/linux/regset.h
@@ -320,7 +320,7 @@ static inline int user_regset_copyout_zero(unsigned int *pos,
if (*kbuf) {
memset(*kbuf, 0, copy);
*kbuf += copy;
- } else if (__clear_user(*ubuf, copy))
+ } else if (clear_user(*ubuf, copy))
return -EFAULT;
else
*ubuf += copy;