Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103329
b: refs/heads/master
c: 4313883
h: refs/heads/master
i:
  103327: 65f35b5
v: v3
  • Loading branch information
Joonwoo Park authored and David S. Miller committed Jul 8, 2008
1 parent a0445fb commit d72c05e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 2523c3fc2bc9e34c06a71517844d55353f1f904a
refs/heads/master: 43138833ee9af07e865a4dcbfe81684c9c2f2262
6 changes: 5 additions & 1 deletion trunk/lib/ts_fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ static unsigned int fsm_find(struct ts_config *conf, struct ts_state *state)
}

static struct ts_config *fsm_init(const void *pattern, unsigned int len,
gfp_t gfp_mask)
gfp_t gfp_mask, int flags)
{
int i, err = -EINVAL;
struct ts_config *conf;
Expand All @@ -269,6 +269,9 @@ static struct ts_config *fsm_init(const void *pattern, unsigned int len,
if (len % sizeof(struct ts_fsm_token) || ntokens < 1)
goto errout;

if (flags & TS_IGNORECASE)
goto errout;

for (i = 0; i < ntokens; i++) {
struct ts_fsm_token *t = &tokens[i];

Expand All @@ -284,6 +287,7 @@ static struct ts_config *fsm_init(const void *pattern, unsigned int len,
if (IS_ERR(conf))
return conf;

conf->flags = flags;
fsm = ts_config_priv(conf);
fsm->ntokens = ntokens;
memcpy(fsm->tokens, pattern, len);
Expand Down

0 comments on commit d72c05e

Please sign in to comment.