diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-10-12 01:19:17 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-17 23:45:41 +0300 |
commit | b9040fab5f369bb64d8671792d74983ef0cb61cf (patch) | |
tree | 095b5f22fea28e14dbe9ea5eea0ee4d090726eaa /include/linux/dma-buf.h | |
parent | a6c9fb2c2ce49dbd7e2dd5493b40edc26ba02b4d (diff) | |
download | linux-b9040fab5f369bb64d8671792d74983ef0cb61cf.tar.xz |
tracing: Get trace_array reference for available_tracers files
commit 194c2c74f5532e62c218adeb8e2b683119503907 upstream.
As instances may have different tracers available, we need to look at the
trace_array descriptor that shows the list of the available tracers for the
instance. But there's a race between opening the file and an admin
deleting the instance. The trace_array_get() needs to be called before
accessing the trace_array.
Cc: stable@vger.kernel.org
Fixes: 607e2ea167e56 ("tracing: Set up infrastructure to allow tracers for instances")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/dma-buf.h')
0 files changed, 0 insertions, 0 deletions