lkml.org 
[lkml]   [2011]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[tip:perf/urgent] trace, filters: Initialize the match variable in process_ops() properly
Commit-ID:  1ef1d1c2353967e2d61ecaddf76edfd058a778b4
Gitweb: http://git.kernel.org/tip/1ef1d1c2353967e2d61ecaddf76edfd058a778b4
Author: Ingo Molnar <mingo@elte.hu>
AuthorDate: Fri, 18 Mar 2011 14:41:27 +0100
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Fri, 18 Mar 2011 14:41:27 +0100

trace, filters: Initialize the match variable in process_ops() properly

Make sure the 'match' variable always has a value.

Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
kernel/trace/trace_events_filter.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events_filter.c
index 3249b4f..8008ddc 100644
--- a/kernel/trace/trace_events_filter.c
+++ b/kernel/trace/trace_events_filter.c
@@ -391,8 +391,8 @@ static int process_ops(struct filter_pred *preds,
struct filter_pred *op, void *rec)
{
struct filter_pred *pred;
+ int match = 0;
int type;
- int match;
int i;

/*

\
 
 \ /
  Last update: 2011-03-18 15:39    [W:0.025 / U:1.888 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site