Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269067
b: refs/heads/master
c: 3f78f93
h: refs/heads/master
i:
  269065: 0579371
  269063: 00eb1f5
v: v3
  • Loading branch information
Jiri Olsa authored and Steven Rostedt committed Aug 19, 2011
1 parent f7d6e8a commit fa741e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 61aaef55300088e12d7f853adeea65d1aa1562db
refs/heads/master: 3f78f935e7fec3067b7990f9e4d324e1de70f79c
9 changes: 3 additions & 6 deletions trunk/kernel/trace/trace_events_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1894,17 +1894,14 @@ int ftrace_profile_set_filter(struct perf_event *event, int event_id,
int err;
struct event_filter *filter;
struct filter_parse_state *ps;
struct ftrace_event_call *call = NULL;
struct ftrace_event_call *call;

mutex_lock(&event_mutex);

list_for_each_entry(call, &ftrace_events, list) {
if (call->event.type == event_id)
break;
}
call = event->tp_event;

err = -EINVAL;
if (&call->list == &ftrace_events)
if (!call)
goto out_unlock;

err = -EEXIST;
Expand Down

0 comments on commit fa741e6

Please sign in to comment.