Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146169
b: refs/heads/master
c: 8cd995b
h: refs/heads/master
i:
  146167: 01787ff
v: v3
  • Loading branch information
Li Zefan authored and Steven Rostedt committed May 15, 2009
1 parent 650520f commit c894bf5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 1ec7c4849c214fc78b023230264399836ea3b245
refs/heads/master: 8cd995b6deedf98b7694ed32a786ee7f793d1eec
10 changes: 6 additions & 4 deletions trunk/kernel/trace/trace_events_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1079,9 +1079,10 @@ int apply_event_filter(struct ftrace_event_call *call, char *filter_string)
return 0;
}

err = -ENOMEM;
ps = kzalloc(sizeof(*ps), GFP_KERNEL);
if (!ps)
return -ENOMEM;
goto out_unlock;

filter_disable_preds(call);
replace_filter_string(call->filter, filter_string);
Expand All @@ -1101,7 +1102,7 @@ int apply_event_filter(struct ftrace_event_call *call, char *filter_string)
filter_opstack_clear(ps);
postfix_clear(ps);
kfree(ps);

out_unlock:
mutex_unlock(&filter_mutex);

return err;
Expand All @@ -1123,9 +1124,10 @@ int apply_subsystem_event_filter(struct event_subsystem *system,
return 0;
}

err = -ENOMEM;
ps = kzalloc(sizeof(*ps), GFP_KERNEL);
if (!ps)
return -ENOMEM;
goto out_unlock;

filter_free_subsystem_preds(system);
replace_filter_string(system->filter, filter_string);
Expand All @@ -1145,7 +1147,7 @@ int apply_subsystem_event_filter(struct event_subsystem *system,
filter_opstack_clear(ps);
postfix_clear(ps);
kfree(ps);

out_unlock:
mutex_unlock(&filter_mutex);

return err;
Expand Down

0 comments on commit c894bf5

Please sign in to comment.