trace, filters: Initialize the match variable in process_ops() properly
authorIngo Molnar <mingo@elte.hu>
Fri, 18 Mar 2011 13:41:27 +0000 (14:41 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 18 Mar 2011 13:41:27 +0000 (14:41 +0100)
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

index 3249b4f..8008ddc 100644 (file)
@@ -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;
 
        /*