projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86977da
)
user_regset_copyout_zero(): use clear_user()
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 18 Feb 2020 22:30:05 +0000
(17:30 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 3 Jun 2020 20:59:31 +0000
(16:59 -0400)
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>
include/linux/regset.h
patch
|
blob
|
history
diff --git
a/include/linux/regset.h
b/include/linux/regset.h
index bf0243779738461f20ba0a80789ffc6b5ad6be83..46d6ae68c4550da350a4e704abd4cfe51773d3be 100644
(file)
--- 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;