diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-01-24 20:47:46 -0500 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-01-24 21:29:13 -0500 |
commit | 28394da25888168df379c40910591b95e8e449f7 (patch) | |
tree | 3186438bf3b481767f85a34c114189c70945311a /sound/drivers/vx/vx_cmd.c | |
parent | eba12ab71e71a2f82836c517596b6bd12664325c (diff) |
tracing: Decrement trace_array when bootconfig creates an instance
The trace_array_get_by_name() creates a ftrace instance and
trace_array_put() is used to remove the reference. Even though the
trace_array_get_by_name() creates the instance, it also adds a reference
count to it, that prevents user space from removing it.
As the bootconfig just creates the instance on boot up, it should still be
used where it can be deleted by user space after boot. A trace_array_put()
is required to let that happen.
Also, change the documentation on trace_array_get_by_name() to make this not
be so confusing.
Link: https://lore.kernel.org/r/20200124205927.76128804@rorschach.local.home
Fixes: 4f712a4d04a4e ("tracing/boot: Add instance node support")
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'sound/drivers/vx/vx_cmd.c')
0 files changed, 0 insertions, 0 deletions