Merge tag 'v4.6-rc6' into x86/asm, to refresh the tree
Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
@@ -108,11 +108,15 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
|
||||
u32 val;
|
||||
|
||||
preempt_disable();
|
||||
if (unlikely(get_user(val, uaddr) != 0))
|
||||
if (unlikely(get_user(val, uaddr) != 0)) {
|
||||
preempt_enable();
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
if (val == oldval && unlikely(put_user(newval, uaddr) != 0))
|
||||
if (val == oldval && unlikely(put_user(newval, uaddr) != 0)) {
|
||||
preempt_enable();
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
*uval = val;
|
||||
preempt_enable();
|
||||
|
Reference in New Issue
Block a user