ftrace: cleanups
no code changed. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
committed by
Thomas Gleixner
parent
d4c5a2f587
commit
4bf39a9411
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user