Commit 609e85a7 authored by Alexander Z Lam's avatar Alexander Z Lam Committed by Steven Rostedt
Browse files

tracing: Fix error handling to ensure instances can always be removed

Remove debugfs directories for tracing instances during creation if an error
occurs causing the trace_array for that instance to not be added to
ftrace_trace_arrays. If the directory continues to exist after the error, it
cannot be removed because the respective trace_array is not in


Cc: # 3.10
Cc: Vaibhav Nagarnaik <>
Cc: David Sharp <>
Cc: Alexander Z Lam <>
Signed-off-by: default avatarAlexander Z Lam <>
Signed-off-by: default avatarSteven Rostedt <>
parent a232e270
......@@ -5973,8 +5973,10 @@ static int new_instance_create(const char *name)
goto out_free_tr;
ret = event_trace_add_tracer(tr->dir, tr);
if (ret)
if (ret) {
goto out_free_tr;
init_tracer_debugfs(tr, tr->dir);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment