diff options
author | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-07-10 04:10:39 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-17 20:50:53 +0400 |
commit | b2ad368bebc0f772613668e893fa176396e9094c (patch) | |
tree | f2c14b8eea287afdab9eb5eba59792e1048b212a /fs/pstore/platform.c | |
parent | c1743cbc8d20d208bb1d2b10598204f2d89b144c (diff) | |
download | linux-b2ad368bebc0f772613668e893fa176396e9094c.tar.xz |
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 <anton.vorontsov@linaro.org>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/pstore/platform.c')
0 files changed, 0 insertions, 0 deletions