Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179369
b: refs/heads/master
c: 751e998
h: refs/heads/master
i:
  179367: 0efa694
v: v3
  • Loading branch information
Li Zefan authored and Steven Rostedt committed Jan 15, 2010
1 parent 8ee20e3 commit 013b625
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b82a4045f7962483a78a874343dc6e31b79c96c1
refs/heads/master: 751e9983ee276cb150e8812b1d995f6035a63878
6 changes: 3 additions & 3 deletions trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,7 @@ ftrace_regex_lseek(struct file *file, loff_t offset, int origin)
static int ftrace_match(char *str, char *regex, int len, int type)
{
int matched = 0;
char *ptr;
int slen;

switch (type) {
case MATCH_FULL:
Expand All @@ -1706,8 +1706,8 @@ static int ftrace_match(char *str, char *regex, int len, int type)
matched = 1;
break;
case MATCH_END_ONLY:
ptr = strstr(str, regex);
if (ptr && (ptr[len] == 0))
slen = strlen(str);
if (slen >= len && memcmp(str + slen - len, regex, len) == 0)
matched = 1;
break;
}
Expand Down

0 comments on commit 013b625

Please sign in to comment.