Commit 5ea75ae6 authored by Al Viro's avatar Al Viro

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 86977da9
...@@ -320,7 +320,7 @@ static inline int user_regset_copyout_zero(unsigned int *pos, ...@@ -320,7 +320,7 @@ static inline int user_regset_copyout_zero(unsigned int *pos,
if (*kbuf) { if (*kbuf) {
memset(*kbuf, 0, copy); memset(*kbuf, 0, copy);
*kbuf += copy; *kbuf += copy;
} else if (__clear_user(*ubuf, copy)) } else if (clear_user(*ubuf, copy))
return -EFAULT; return -EFAULT;
else else
*ubuf += copy; *ubuf += copy;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment