Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1686161 > unrolled thread
| Started by | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| First post | 2017-07-13 03:10 +0200 |
| Last post | 2017-07-13 03:10 +0200 |
| Articles | 2 — 1 participant |
Back to article view | Back to linux.kernel
[for-next][PATCH 0/2] tracing: Hopefully the last updates for 4.13 Steven Rostedt <rostedt@goodmis.org> - 2017-07-13 03:10 +0200
[for-next][PATCH 2/2] ftrace: Fix uninitialized variable in match_records() Steven Rostedt <rostedt@goodmis.org> - 2017-07-13 03:10 +0200
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Date | 2017-07-13 03:10 +0200 |
| Subject | [for-next][PATCH 0/2] tracing: Hopefully the last updates for 4.13 |
| Message-ID | <u2ANH-7ig-3@gated-at.bofh.it> |
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
for-next
Head SHA1: 2e028c4fe12907f226b8221815f16c2486ad3aa7
Dan Carpenter (2):
ftrace: Remove an unneeded NULL check
ftrace: Fix uninitialized variable in match_records()
----
kernel/trace/ftrace.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[toc] | [next] | [standalone]
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Date | 2017-07-13 03:10 +0200 |
| Subject | [for-next][PATCH 2/2] ftrace: Fix uninitialized variable in match_records() |
| Message-ID | <u2ANH-7ig-9@gated-at.bofh.it> |
| In reply to | #1686161 |
From: Dan Carpenter <dan.carpenter@oracle.com>
My static checker complains that if "func" is NULL then "clear_filter"
is uninitialized. This seems like it could be true, although it's
possible something subtle is happening that I haven't seen.
kernel/trace/ftrace.c:3844 match_records()
error: uninitialized symbol 'clear_filter'.
Link: http://lkml.kernel.org/r/20170712073556.h6tkpjcdzjaozozs@mwanda
Cc: stable@vger.kernel.org
Fixes: f0a3b154bd7 ("ftrace: Clarify code for mod command")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
kernel/trace/ftrace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 5fb5b40b3ae8..53f6b6401cf0 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -3816,7 +3816,7 @@ match_records(struct ftrace_hash *hash, char *func, int len, char *mod)
int exclude_mod = 0;
int found = 0;
int ret;
- int clear_filter;
+ int clear_filter = 0;
if (func) {
func_g.type = filter_parse_regex(func, len, &func_g.search,
--
2.10.2
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web