diff options
Diffstat (limited to 'include/asm-generic')
-rw-r--r-- | include/asm-generic/futex.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-generic/futex.h b/include/asm-generic/futex.h index 358601750fe7..e56272c919b5 100644 --- a/include/asm-generic/futex.h +++ b/include/asm-generic/futex.h @@ -107,6 +107,7 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, { u32 val; + preempt_disable(); if (unlikely(get_user(val, uaddr) != 0)) return -EFAULT; @@ -114,6 +115,7 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, return -EFAULT; *uval = val; + preempt_enable(); return 0; } |