tracing: Fix error handling to ensure instances can always be removed
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-03fca28f4feea1a7d93654bea20660d7306832b4@google.com

Cc: 4fbacc2fa0ffdbb11bf1ad6925b886ebd08dd15f@vger.kernel.org # 3.10
Cc: Vaibhav Nagarnaik <1fa667586c90bce718fd3c486c1144f98789d483@google.com>
Cc: David Sharp <d17c0a8430b0bd65a7a6ae309f7a3dc190d92668@google.com>
Cc: Alexander Z Lam <989eeae8fb59e39b84c9e7ee5525dc7ac44d371d@gmail.com>
Signed-off-by: Alexander Z Lam <03fca28f4feea1a7d93654bea20660d7306832b4@google.com>
Signed-off-by: Steven Rostedt <43232e92d70cc7aa53504ad0397085ee47bad87f@goodmis.org>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs