Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22988
b: refs/heads/master
c: 30e931d
h: refs/heads/master
v: v3
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Mar 23, 2006
1 parent 6617927 commit c547411
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: 4f88651125e2ca8b106b6f65b65ea45776517bf3
refs/heads/master: 30e931d4092713cecd6b8c2fd70f268efaa6e428
12 changes: 7 additions & 5 deletions trunk/include/asm-i386/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,15 @@ extern void __put_user_8(void);

#define put_user(x,ptr) \
({ int __ret_pu; \
__typeof__(*(ptr)) __pu_val; \
__chk_user_ptr(ptr); \
__pu_val = x; \
switch(sizeof(*(ptr))) { \
case 1: __put_user_1(x, ptr); break; \
case 2: __put_user_2(x, ptr); break; \
case 4: __put_user_4(x, ptr); break; \
case 8: __put_user_8(x, ptr); break; \
default:__put_user_X(x, ptr); break; \
case 1: __put_user_1(__pu_val, ptr); break; \
case 2: __put_user_2(__pu_val, ptr); break; \
case 4: __put_user_4(__pu_val, ptr); break; \
case 8: __put_user_8(__pu_val, ptr); break; \
default:__put_user_X(__pu_val, ptr); break; \
} \
__ret_pu; \
})
Expand Down

0 comments on commit c547411

Please sign in to comment.