aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace_events_filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events_filter.c
index 50504cb228de..11c3973e6552 100644
--- a/kernel/trace/trace_events_filter.c
+++ b/kernel/trace/trace_events_filter.c
@@ -261,7 +261,7 @@ static int regex_match_full(char *str, struct regex *r, int len)
261 261
262static int regex_match_front(char *str, struct regex *r, int len) 262static int regex_match_front(char *str, struct regex *r, int len)
263{ 263{
264 if (strncmp(str, r->pattern, len) == 0) 264 if (strncmp(str, r->pattern, r->len) == 0)
265 return 1; 265 return 1;
266 return 0; 266 return 0;
267} 267}