diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | 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 49e44dd17851..f364b085397e 100644 --- a/kernel/trace/trace_events_filter.c +++ b/kernel/trace/trace_events_filter.c | |||
@@ -268,7 +268,7 @@ static int regex_match_front(char *str, struct regex *r, int len) | |||
268 | 268 | ||
269 | static int regex_match_middle(char *str, struct regex *r, int len) | 269 | static int regex_match_middle(char *str, struct regex *r, int len) |
270 | { | 270 | { |
271 | if (strstr(str, r->pattern)) | 271 | if (strnstr(str, r->pattern, len)) |
272 | return 1; | 272 | return 1; |
273 | return 0; | 273 | return 0; |
274 | } | 274 | } |