aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/futex.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-08-04 03:09:27 -0400
committerIngo Molnar <mingo@elte.hu>2011-08-04 03:09:27 -0400
commitd7619fe39d9769b4d4545cc511c891deea18ae08 (patch)
tree0a902533414001075b2245825e145cc2e35ce985 /kernel/futex.c
parent9ea71503a8ed9184d2d0b8ccc4d269d05f7940ae (diff)
parented8f37370d83e695c0a4fa5d5fc7a83ecb947526 (diff)
Merge branch 'linus' into core/urgent
Diffstat (limited to 'kernel/futex.c')
-rw-r--r--kernel/futex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/futex.c b/kernel/futex.c
index 70bb54bd2468..11cbe052b2e8 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -384,8 +384,8 @@ static int fault_in_user_writeable(u32 __user *uaddr)
384 int ret; 384 int ret;
385 385
386 down_read(&mm->mmap_sem); 386 down_read(&mm->mmap_sem);
387 ret = get_user_pages(current, mm, (unsigned long)uaddr, 387 ret = fixup_user_fault(current, mm, (unsigned long)uaddr,
388 1, 1, 0, NULL, NULL); 388 FAULT_FLAG_WRITE);
389 up_read(&mm->mmap_sem); 389 up_read(&mm->mmap_sem);
390 390
391 return ret < 0 ? ret : 0; 391 return ret < 0 ? ret : 0;
@@ -2727,7 +2727,7 @@ static int __init futex_init(void)
2727 futex_cmpxchg_enabled = 1; 2727 futex_cmpxchg_enabled = 1;
2728 2728
2729 for (i = 0; i < ARRAY_SIZE(futex_queues); i++) { 2729 for (i = 0; i < ARRAY_SIZE(futex_queues); i++) {
2730 plist_head_init(&futex_queues[i].chain, &futex_queues[i].lock); 2730 plist_head_init(&futex_queues[i].chain);
2731 spin_lock_init(&futex_queues[i].lock); 2731 spin_lock_init(&futex_queues[i].lock);
2732 } 2732 }
2733 2733