Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1907
b: refs/heads/master
c: f8acd94
h: refs/heads/master
i:
  1905: 775f468
  1903: 1830a35
v: v3
  • Loading branch information
William Lee Irwin III authored and Linus Torvalds committed Jun 8, 2005
1 parent 99e48e2 commit 23ac090
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: beb9e1c3f32a0f878765c7c1142f91083739c5bd
refs/heads/master: f8acd944ea511af02485b1709c07ac7aac12aa48
5 changes: 3 additions & 2 deletions trunk/include/asm-sparc/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@
* No one can read/write anything from userland in the kernel space by setting
* large size and address near to PAGE_OFFSET - a fault will break his intentions.
*/
#define __user_ok(addr,size) ((addr) < STACK_TOP)
#define __user_ok(addr, size) ({ (void)(size); (addr) < STACK_TOP; })
#define __kernel_ok (segment_eq(get_fs(), KERNEL_DS))
#define __access_ok(addr,size) (__user_ok((addr) & get_fs().seg,(size)))
#define access_ok(type,addr,size) __access_ok((unsigned long)(addr),(size))
#define access_ok(type, addr, size) \
({ (void)(type); __access_ok((unsigned long)(addr), size); })

/* this function will go away soon - use access_ok() instead */
static inline int __deprecated verify_area(int type, const void __user * addr, unsigned long size)
Expand Down

0 comments on commit 23ac090

Please sign in to comment.