]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tracing: Fix error handling to ensure instances can always be removed
authorAlexander Z Lam <azl@google.com>
Thu, 11 Jul 2013 00:34:34 +0000 (17:34 -0700)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 19 Jul 2013 01:31:30 +0000 (21:31 -0400)
commit609e85a70bcd0eedf4ec60639dbcfb1ab011e054
tree2d977d898d4c781198935482659dd0174e0b9218
parenta232e270dcb55a70ad3241bc6fc160fd9b5c9e6c
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
ftrace_trace_arrays.

Link: http://lkml.kernel.org/r/1373502874-1706-2-git-send-email-azl@google.com
Cc: stable@vger.kernel.org # 3.10
Cc: Vaibhav Nagarnaik <vnagarnaik@google.com>
Cc: David Sharp <dhsharp@google.com>
Cc: Alexander Z Lam <lambchop468@gmail.com>
Signed-off-by: Alexander Z Lam <azl@google.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c