[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-0aff1c0cef13b34c17e81a502336fad738151c37@git.kernel.org>
Date: Wed, 8 Jun 2011 18:34:33 GMT
From: tip-bot for GuoWen Li <guowen.li.linux@...il.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
rostedt@...dmis.org, guowen.li.linux@...il.com, tglx@...utronix.de
Subject: [tip:perf/urgent] ftrace: Fix possible undefined return code
Commit-ID: 0aff1c0cef13b34c17e81a502336fad738151c37
Gitweb: http://git.kernel.org/tip/0aff1c0cef13b34c17e81a502336fad738151c37
Author: GuoWen Li <guowen.li.linux@...il.com>
AuthorDate: Wed, 1 Jun 2011 19:18:47 +0800
Committer: Steven Rostedt <rostedt@...dmis.org>
CommitDate: Mon, 6 Jun 2011 22:34:25 -0400
ftrace: Fix possible undefined return code
kernel/trace/ftrace.c: In function 'ftrace_regex_write.clone.15':
kernel/trace/ftrace.c:2743:6: warning: 'ret' may be used uninitialized in this
function
Signed-off-by: GuoWen Li <guowen.li.linux@...il.com>
Link: http://lkml.kernel.org/r/201106011918.47939.guowen.li.linux@gmail.com
Signed-off-by: Steven Rostedt <rostedt@...dmis.org>
---
kernel/trace/ftrace.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 1ee417f..204b3eb 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -2740,7 +2740,7 @@ static int ftrace_process_regex(struct ftrace_hash *hash,
{
char *func, *command, *next = buff;
struct ftrace_func_command *p;
- int ret;
+ int ret = -EINVAL;
func = strsep(&next, ":");
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists