aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_branch.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_branch.c')
-rw-r--r--kernel/trace/trace_branch.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/trace/trace_branch.c b/kernel/trace/trace_branch.c
index c95c25d838e..8e64e604f5a 100644
--- a/kernel/trace/trace_branch.c
+++ b/kernel/trace/trace_branch.c
@@ -74,9 +74,8 @@ probe_likely_condition(struct ftrace_branch_data *f, int val, int expect)
74 entry->line = f->line; 74 entry->line = f->line;
75 entry->correct = val == expect; 75 entry->correct = val == expect;
76 76
77 filter_check_discard(call, entry, event); 77 if (!filter_check_discard(call, entry, tr->buffer, event))
78 78 ring_buffer_unlock_commit(tr->buffer, event);
79 ring_buffer_unlock_commit(tr->buffer, event);
80 79
81 out: 80 out:
82 atomic_dec(&tr->data[cpu]->disabled); 81 atomic_dec(&tr->data[cpu]->disabled);