diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-05-12 21:20:46 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 20:42:20 +0200 |
commit | 4bf39a9411a4ce8712954e03a9bd1592ee345919 (patch) | |
tree | 044694f1c69ec2588e4b60e6b60701bae2a53e81 /kernel/trace/ftrace.c | |
parent | d4c5a2f5870939d837293de87b41dda0012a4572 (diff) | |
download | blackbird-op-linux-4bf39a9411a4ce8712954e03a9bd1592ee345919.tar.gz blackbird-op-linux-4bf39a9411a4ce8712954e03a9bd1592ee345919.zip |
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.c | 5 |
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; } |