Commit 194c2c7
committed
tracing: Get trace_array reference for available_tracers files
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: 607e2ea ("tracing: Set up infrastructure to allow tracers for instances")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>1 parent 9ef1669 commit 194c2c7
1 file changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4355 | 4355 | | |
4356 | 4356 | | |
4357 | 4357 | | |
| 4358 | + | |
| 4359 | + | |
| 4360 | + | |
4358 | 4361 | | |
4359 | | - | |
| 4362 | + | |
| 4363 | + | |
4360 | 4364 | | |
| 4365 | + | |
4361 | 4366 | | |
4362 | 4367 | | |
4363 | 4368 | | |
4364 | 4369 | | |
4365 | 4370 | | |
4366 | 4371 | | |
4367 | 4372 | | |
| 4373 | + | |
| 4374 | + | |
| 4375 | + | |
| 4376 | + | |
| 4377 | + | |
| 4378 | + | |
| 4379 | + | |
| 4380 | + | |
4368 | 4381 | | |
4369 | 4382 | | |
4370 | 4383 | | |
| |||
4395 | 4408 | | |
4396 | 4409 | | |
4397 | 4410 | | |
4398 | | - | |
4399 | 4411 | | |
| 4412 | + | |
4400 | 4413 | | |
4401 | 4414 | | |
4402 | 4415 | | |
| |||
0 commit comments