From: Alexander Z Lam Date: Thu, 11 Jul 2013 00:34:34 +0000 (-0700) Subject: tracing: Fix error handling to ensure instances can always be removed X-Git-Tag: v3.11-rc3~29^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=609e85a70bcd0eedf4ec60639dbcfb1ab011e054;p=pandora-kernel.git 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 Cc: David Sharp Cc: Alexander Z Lam Signed-off-by: Alexander Z Lam Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed