aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/ftrace.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 5c5cb9be8e8c..e70af98bb99c 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -1621,8 +1621,10 @@ ftrace_regex_open(struct inode *inode, struct file *file, int enable)
1621 if (!ret) { 1621 if (!ret) {
1622 struct seq_file *m = file->private_data; 1622 struct seq_file *m = file->private_data;
1623 m->private = iter; 1623 m->private = iter;
1624 } else 1624 } else {
1625 trace_parser_put(&iter->parser);
1625 kfree(iter); 1626 kfree(iter);
1627 }
1626 } else 1628 } else
1627 file->private_data = iter; 1629 file->private_data = iter;
1628 mutex_unlock(&ftrace_regex_lock); 1630 mutex_unlock(&ftrace_regex_lock);