Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87407
b: refs/heads/master
c: c20a84c
h: refs/heads/master
i:
  87405: 001ecb3
  87403: fa6e5b6
  87399: 387d324
  87391: ab99768
v: v3
  • Loading branch information
Kyle McMartin committed Mar 16, 2008
1 parent c2cd456 commit 48fa072
Show file tree
Hide file tree
Showing 2 changed files with 9 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: dc39455e7948ec9bc5f3f2dced5c2f5ac8a8dfd9
refs/heads/master: c20a84c91048c76c1379011c96b1a5cee5c7d9a0
10 changes: 8 additions & 2 deletions trunk/include/asm-parisc/futex.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ futex_atomic_cmpxchg_inatomic(int __user *uaddr, int oldval, int newval)
int err = 0;
int uval;

/* futex.c wants to do a cmpxchg_inatomic on kernel NULL, which is
* our gateway page, and causes no end of trouble...
*/
if (segment_eq(KERNEL_DS, get_fs()) && !uaddr)
return -EFAULT;

if (!access_ok(VERIFY_WRITE, uaddr, sizeof(int)))
return -EFAULT;

Expand All @@ -67,5 +73,5 @@ futex_atomic_cmpxchg_inatomic(int __user *uaddr, int oldval, int newval)
return uval;
}

#endif
#endif
#endif /*__KERNEL__*/
#endif /*_ASM_PARISC_FUTEX_H*/

0 comments on commit 48fa072

Please sign in to comment.