summaryrefslogtreecommitdiff
path: root/kernel/trace/ftrace.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-05-12 23:20:46 +0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 22:42:20 +0400
commit4bf39a9411a4ce8712954e03a9bd1592ee345919 (patch)
tree044694f1c69ec2588e4b60e6b60701bae2a53e81 /kernel/trace/ftrace.c
parentd4c5a2f5870939d837293de87b41dda0012a4572 (diff)
downloadlinux-4bf39a9411a4ce8712954e03a9bd1592ee345919.tar.xz
ftrace: cleanups
no code changed. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r--kernel/trace/ftrace.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 5e9389faaf75..97c40865a93e 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -756,9 +756,11 @@ ftrace_avail_open(struct inode *inode, struct file *file)
ret = seq_open(file, &show_ftrace_seq_ops);
if (!ret) {
struct seq_file *m = file->private_data;
+
m->private = iter;
- } else
+ } else {
kfree(iter);
+ }
return ret;
}
@@ -770,6 +772,7 @@ int ftrace_avail_release(struct inode *inode, struct file *file)
seq_release(inode, file);
kfree(iter);
+
return 0;
}