Repository navigation
Commit 46ef2be
tracing: Change tracing_buffers_fops to rely on tracing_get_cpu()
tracing_buffers_open() is racy, the memory inode->i_private points
to can be already freed.
Change debugfs_create_file("trace_pipe_raw", data) caller to pass
"data = tr", tracing_buffers_open() can use tracing_get_cpu().
Change debugfs_create_file("snapshot_raw_fops", data) caller too,
this file uses tracing_buffers_open/release.
Link: http://lkml.kernel.org/r/20130723152600.GA23720@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>1 parent 1554420 commit 46ef2be
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4949 | 4949 | | |
4950 | 4950 | | |
4951 | 4951 | | |
4952 | | - | |
4953 | | - | |
| 4952 | + | |
4954 | 4953 | | |
4955 | 4954 | | |
4956 | 4955 | | |
| |||
4969 | 4968 | | |
4970 | 4969 | | |
4971 | 4970 | | |
4972 | | - | |
| 4971 | + | |
4973 | 4972 | | |
4974 | 4973 | | |
4975 | 4974 | | |
| |||
5576 | 5575 | | |
5577 | 5576 | | |
5578 | 5577 | | |
5579 | | - | |
| 5578 | + | |
5580 | 5579 | | |
5581 | 5580 | | |
5582 | 5581 | | |
| |||
5589 | 5588 | | |
5590 | 5589 | | |
5591 | 5590 | | |
5592 | | - | |
| 5591 | + | |
5593 | 5592 | | |
5594 | 5593 | | |
5595 | 5594 | | |
| |||
0 commit comments