Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107202
b: refs/heads/master
c: 6de9c64
h: refs/heads/master
v: v3
  • Loading branch information
OGAWA Hirofumi authored and Paul Mundt committed Jul 29, 2008
1 parent c169d32 commit e78d5aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 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: d27e0854d5773fffe1a1d475032b715d124325ae
refs/heads/master: 6de9c6481d47c6da5f8b81f75a5c24c69c366f37
6 changes: 4 additions & 2 deletions trunk/arch/sh/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,19 @@ struct __large_struct { unsigned long buf[100]; };
({ \
long __pu_err; \
__typeof__(*(ptr)) __user *__pu_addr = (ptr); \
__typeof__(*(ptr)) __pu_val = x; \
__chk_user_ptr(ptr); \
__put_user_size((x), __pu_addr, (size), __pu_err); \
__put_user_size(__pu_val, __pu_addr, (size), __pu_err); \
__pu_err; \
})

#define __put_user_check(x,ptr,size) \
({ \
long __pu_err = -EFAULT; \
__typeof__(*(ptr)) __user *__pu_addr = (ptr); \
__typeof__(*(ptr)) __pu_val = x; \
if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) \
__put_user_size((x), __pu_addr, (size), \
__put_user_size(__pu_val, __pu_addr, (size), \
__pu_err); \
__pu_err; \
})
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/sh/include/asm/uaccess_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ do { \
__put_user_asm(x, ptr, retval, "w"); \
break; \
case 4: \
__put_user_asm((u32)x, ptr, \
retval, "l"); \
__put_user_asm(x, ptr, retval, "l"); \
break; \
case 8: \
__put_user_u64(x, ptr, retval); \
Expand Down

0 comments on commit e78d5aa

Please sign in to comment.