Skip to content

Commit 92d8d4a

Browse files
Jiri Olsarostedt
Jiri Olsa
authored andcommitted
tracing/filter: Add missing initialization
Add missing initialization for ret variable. Its initialization is based on the re_cnt variable, which is being set deep down in the ftrace_function_filter_re function. I'm not sure compilers would be smart enough to see this in near future, so killing the warning this way. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Jiri Olsa <[email protected]> Signed-off-by: Steven Rostedt <[email protected]>
1 parent 3c18c10 commit 92d8d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/trace_events_filter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2002,7 +2002,7 @@ static int ftrace_function_set_regexp(struct ftrace_ops *ops, int filter,
20022002
static int __ftrace_function_set_filter(int filter, char *buf, int len,
20032003
struct function_filter_data *data)
20042004
{
2005-
int i, re_cnt, ret;
2005+
int i, re_cnt, ret = -EINVAL;
20062006
int *reset;
20072007
char **re;
20082008

0 commit comments

Comments
 (0)