mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
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>
This commit is contained in:
parent
86977da9cb
commit
5ea75ae6ae
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue