diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-01-09 02:38:23 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-01-09 02:38:23 -0500 |
commit | da733563be5a9da26fe81d9f007262d00b846e22 (patch) | |
tree | db28291df94a2043af2123911984c5c173da4e6f /kernel/futex.c | |
parent | 6ccbcf2cb41131f8d56ef0723bf3f7c1f8486076 (diff) | |
parent | dab78d7924598ea4031663dd10db814e2e324928 (diff) |
Merge branch 'next' into for-linus
Diffstat (limited to 'kernel/futex.c')
-rw-r--r-- | kernel/futex.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/futex.c b/kernel/futex.c index 11cbe052b2e8..ea87f4d2f455 100644 --- a/kernel/futex.c +++ b/kernel/futex.c | |||
@@ -55,7 +55,7 @@ | |||
55 | #include <linux/pagemap.h> | 55 | #include <linux/pagemap.h> |
56 | #include <linux/syscalls.h> | 56 | #include <linux/syscalls.h> |
57 | #include <linux/signal.h> | 57 | #include <linux/signal.h> |
58 | #include <linux/module.h> | 58 | #include <linux/export.h> |
59 | #include <linux/magic.h> | 59 | #include <linux/magic.h> |
60 | #include <linux/pid.h> | 60 | #include <linux/pid.h> |
61 | #include <linux/nsproxy.h> | 61 | #include <linux/nsproxy.h> |
@@ -854,7 +854,7 @@ static int wake_futex_pi(u32 __user *uaddr, u32 uval, struct futex_q *this) | |||
854 | { | 854 | { |
855 | struct task_struct *new_owner; | 855 | struct task_struct *new_owner; |
856 | struct futex_pi_state *pi_state = this->pi_state; | 856 | struct futex_pi_state *pi_state = this->pi_state; |
857 | u32 curval, newval; | 857 | u32 uninitialized_var(curval), newval; |
858 | 858 | ||
859 | if (!pi_state) | 859 | if (!pi_state) |
860 | return -EINVAL; | 860 | return -EINVAL; |
@@ -916,7 +916,7 @@ static int wake_futex_pi(u32 __user *uaddr, u32 uval, struct futex_q *this) | |||
916 | 916 | ||
917 | static int unlock_futex_pi(u32 __user *uaddr, u32 uval) | 917 | static int unlock_futex_pi(u32 __user *uaddr, u32 uval) |
918 | { | 918 | { |
919 | u32 oldval; | 919 | u32 uninitialized_var(oldval); |
920 | 920 | ||
921 | /* | 921 | /* |
922 | * There is no waiter, so we unlock the futex. The owner died | 922 | * There is no waiter, so we unlock the futex. The owner died |
@@ -1576,7 +1576,7 @@ static int fixup_pi_state_owner(u32 __user *uaddr, struct futex_q *q, | |||
1576 | u32 newtid = task_pid_vnr(newowner) | FUTEX_WAITERS; | 1576 | u32 newtid = task_pid_vnr(newowner) | FUTEX_WAITERS; |
1577 | struct futex_pi_state *pi_state = q->pi_state; | 1577 | struct futex_pi_state *pi_state = q->pi_state; |
1578 | struct task_struct *oldowner = pi_state->owner; | 1578 | struct task_struct *oldowner = pi_state->owner; |
1579 | u32 uval, curval, newval; | 1579 | u32 uval, uninitialized_var(curval), newval; |
1580 | int ret; | 1580 | int ret; |
1581 | 1581 | ||
1582 | /* Owner died? */ | 1582 | /* Owner died? */ |
@@ -1793,7 +1793,7 @@ static void futex_wait_queue_me(struct futex_hash_bucket *hb, struct futex_q *q, | |||
1793 | * | 1793 | * |
1794 | * Returns: | 1794 | * Returns: |
1795 | * 0 - uaddr contains val and hb has been locked | 1795 | * 0 - uaddr contains val and hb has been locked |
1796 | * <1 - -EFAULT or -EWOULDBLOCK (uaddr does not contain val) and hb is unlcoked | 1796 | * <1 - -EFAULT or -EWOULDBLOCK (uaddr does not contain val) and hb is unlocked |
1797 | */ | 1797 | */ |
1798 | static int futex_wait_setup(u32 __user *uaddr, u32 val, unsigned int flags, | 1798 | static int futex_wait_setup(u32 __user *uaddr, u32 val, unsigned int flags, |
1799 | struct futex_q *q, struct futex_hash_bucket **hb) | 1799 | struct futex_q *q, struct futex_hash_bucket **hb) |
@@ -2481,7 +2481,7 @@ err_unlock: | |||
2481 | */ | 2481 | */ |
2482 | int handle_futex_death(u32 __user *uaddr, struct task_struct *curr, int pi) | 2482 | int handle_futex_death(u32 __user *uaddr, struct task_struct *curr, int pi) |
2483 | { | 2483 | { |
2484 | u32 uval, nval, mval; | 2484 | u32 uval, uninitialized_var(nval), mval; |
2485 | 2485 | ||
2486 | retry: | 2486 | retry: |
2487 | if (get_user(uval, uaddr)) | 2487 | if (get_user(uval, uaddr)) |