summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2013-07-23 17:26:06 +0200
committerSteven Rostedt <rostedt@rostedt.homelinux.com>2013-07-24 11:22:52 -0400
commit0bc392ee46d0fd8e6b678457ef71f074f19a03c5 (patch)
treee0f516c200ab6f1eea2f31323c6e4d24000d7e93 /arch
parent4d3435b8a4c3357695e09c5e7a3bf73a19fca5b0 (diff)
downloadlinux-stable-0bc392ee46d0fd8e6b678457ef71f074f19a03c5.tar.gz
linux-stable-0bc392ee46d0fd8e6b678457ef71f074f19a03c5.tar.bz2
linux-stable-0bc392ee46d0fd8e6b678457ef71f074f19a03c5.zip
tracing: Change tracing_entries_fops to rely on tracing_get_cpu()
tracing_open_generic_tc() is racy, the memory inode->i_private points to can be already freed. 1. Change its last user, tracing_entries_fops, to use tracing_*_generic_tr() instead. 2. Change debugfs_create_file("buffer_size_kb", data) callers to pass "data = tr". 3. Change tracing_entries_read() and tracing_entries_write() to use tracing_get_cpu(). 4. Kill the no longer used tracing_open_generic_tc() and tracing_release_generic_tc(). Link: http://lkml.kernel.org/r/20130723152606.GA23730@redhat.com Signed-off-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions