Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146108
b: refs/heads/master
c: 5928c3c
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed May 7, 2009
1 parent 782d18e commit 87c613a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e8808c1019b048a43686dbd25c188a035842c2e2
refs/heads/master: 5928c3cc0ffcb6894bbab6be591b7ae1786b2d87
10 changes: 10 additions & 0 deletions trunk/kernel/trace/trace_events_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -851,10 +851,19 @@ static void postfix_clear(struct filter_parse_state *ps)

static int filter_parse(struct filter_parse_state *ps)
{
int in_string = 0;
int op, top_op;
char ch;

while ((ch = infix_next(ps))) {
if (ch == '"') {
in_string ^= 1;
continue;
}

if (in_string)
goto parse_operand;

if (isspace(ch))
continue;

Expand Down Expand Up @@ -908,6 +917,7 @@ static int filter_parse(struct filter_parse_state *ps)
}
continue;
}
parse_operand:
if (append_operand_char(ps, ch)) {
parse_error(ps, FILT_ERR_OPERAND_TOO_LONG, 0);
return -EINVAL;
Expand Down

0 comments on commit 87c613a

Please sign in to comment.