Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753330Ab2BPJiK (ORCPT ); Thu, 16 Feb 2012 04:38:10 -0500 Received: from mail-pw0-f46.google.com ([209.85.160.46]:38833 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751277Ab2BPJiH (ORCPT ); Thu, 16 Feb 2012 04:38:07 -0500 From: yad.naveen@gmail.com To: Thomas Gleixner , Darren Hart , Greg Kroah-Hartman , Steven Rostedt , Peter Zijlstra , linux-kernel@vger.kernel.org Cc: Naveen Yadav Subject: [PATCH] futex: fix uninitialized warning Date: Thu, 16 Feb 2012 15:15:21 +0530 Message-Id: <4f3cce7d.443a440a.2f15.ffffe7ff@mx.google.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1132 Lines: 38 From: Naveen Yadav Signed-off-by: Naveen Yadav --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/