From: Anton Vorontsov Date: Tue, 10 Jul 2012 00:10:39 +0000 (-0700) Subject: tracing: Fix initialization failure path in tracing_set_tracer() X-Git-Tag: v3.6-rc1~100^2~166 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2ad368bebc0f772613668e893fa176396e9094c;p=pandora-kernel.git tracing: Fix initialization failure path in tracing_set_tracer() If tracer->init() fails, current code will leave current_tracer pointing to an unusable tracer, which at best makes 'current_tracer' report inaccurate value. Fix the issue by pointing current_tracer to nop tracer, and only update current_tracer with the new one after all the initialization succeeds. Signed-off-by: Anton Vorontsov Acked-by: Steven Rostedt Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed