mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] futex: fix uninitialized warning
@ 2012-02-16  9:45 yad.naveen
  2012-02-16 13:32 ` Steven Rostedt
  0 siblings, 1 reply; 3+ messages in thread
From: yad.naveen @ 2012-02-16  9:45 UTC (permalink / raw)
  To: Thomas Gleixner, Darren Hart, Greg Kroah-Hartman, Steven Rostedt,
	Peter Zijlstra, linux-kernel
  Cc: Naveen Yadav

From: Naveen Yadav <yad.naveen@gmail.com>


Signed-off-by: Naveen Yadav <yad.naveen@gmail.com>
---
 kernel/futex.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/futex.c b/kernel/futex.c
index 6487e4c..fdb93b0 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -1588,7 +1588,7 @@ static int fixup_pi_state_owner(u32 __user *uaddr, struct futex_q *q,
 	u32 newtid = task_pid_vnr(newowner) | FUTEX_WAITERS;
 	struct futex_pi_state *pi_state = q->pi_state;
 	struct task_struct *oldowner = pi_state->owner;
-	u32 uval, curval, newval;
+	u32 uval, uninitialized_var(curval), newval;
 	int ret;
 
 	/* Owner died? */
@@ -2493,7 +2493,7 @@ err_unlock:
  */
 int handle_futex_death(u32 __user *uaddr, struct task_struct *curr, int pi)
 {
-	u32 uval, nval, mval;
+	u32 uval, uninitialized_var(nval), mval;
 
 retry:
 	if (get_user(uval, uaddr))
-- 
1.7.8.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-17  5:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-16  9:45 [PATCH] futex: fix uninitialized warning yad.naveen
2012-02-16 13:32 ` Steven Rostedt
2012-02-17  5:02   ` naveen yadav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome