Skip to content

Commit 5ea75ae

Browse files
author
Al Viro
committed
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 <[email protected]>
1 parent 86977da commit 5ea75ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/regset.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ static inline int user_regset_copyout_zero(unsigned int *pos,
320320
if (*kbuf) {
321321
memset(*kbuf, 0, copy);
322322
*kbuf += copy;
323-
} else if (__clear_user(*ubuf, copy))
323+
} else if (clear_user(*ubuf, copy))
324324
return -EFAULT;
325325
else
326326
*ubuf += copy;

0 commit comments

Comments
 (0)