Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123167
b: refs/heads/master
c: 1d18ef4
h: refs/heads/master
i:
  123165: 7fff11e
  123163: 270b438
  123159: f2b5178
  123151: 302e5a9
  123135: a9f2548
v: v3
  • Loading branch information
Ingo Molnar committed Sep 11, 2008
1 parent b55f70a commit 61c7d28
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3ee1afa308f2a38e5d1e2ad3752ad7abcf480da1
refs/heads/master: 1d18ef489509314506328b9e464dd47c24c1d68f
1 change: 1 addition & 0 deletions trunk/arch/x86/lib/usercopy_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ do { \
unsigned long
clear_user(void __user *to, unsigned long n)
{
might_fault();
if (access_ok(VERIFY_WRITE, to, n))
__do_clear_user(to, n);
return n;
Expand Down
2 changes: 0 additions & 2 deletions trunk/include/asm-x86/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ extern void __put_user_8(void);
#define __put_user_size(x, ptr, size, retval, errret) \
do { \
retval = 0; \
might_fault(); \
__chk_user_ptr(ptr); \
switch (size) { \
case 1: \
Expand Down Expand Up @@ -320,7 +319,6 @@ do { \
#define __get_user_size(x, ptr, size, retval, errret) \
do { \
retval = 0; \
might_fault(); \
__chk_user_ptr(ptr); \
switch (size) { \
case 1: \
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static inline unsigned long __copy_from_user_nocache(void *to,
\
set_fs(KERNEL_DS); \
pagefault_disable(); \
ret = __get_user(retval, (__force typeof(retval) __user *)(addr)); \
ret = __copy_from_user_inatomic((__force typeof(retval) __user *)(addr), &(retval), sizeof(retval)); \
pagefault_enable(); \
set_fs(old_fs); \
ret; \
Expand Down

0 comments on commit 61c7d28

Please sign in to comment.