aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/ftrace.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-05-12 15:20:46 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 14:42:20 -0400
commit4bf39a9411a4ce8712954e03a9bd1592ee345919 (patch)
tree044694f1c69ec2588e4b60e6b60701bae2a53e81 /kernel/trace/ftrace.c
parentd4c5a2f5870939d837293de87b41dda0012a4572 (diff)
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)
756 ret = seq_open(file, &show_ftrace_seq_ops); 756 ret = seq_open(file, &show_ftrace_seq_ops);
757 if (!ret) { 757 if (!ret) {
758 struct seq_file *m = file->private_data; 758 struct seq_file *m = file->private_data;
759
759 m->private = iter; 760 m->private = iter;
760 } else 761 } else {
761 kfree(iter); 762 kfree(iter);
763 }
762 764
763 return ret; 765 return ret;
764} 766}
@@ -770,6 +772,7 @@ int ftrace_avail_release(struct inode *inode, struct file *file)
770 772
771 seq_release(inode, file); 773 seq_release(inode, file);
772 kfree(iter); 774 kfree(iter);
775
773 return 0; 776 return 0;
774} 777}
775 778