summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_benchmark.c
diff options
context:
space:
mode:
authorYoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>2014-06-03 13:28:03 +0900
committerSteven Rostedt <rostedt@goodmis.org>2014-06-03 19:58:31 -0400
commit198376cd8877a612cc6494201b815c36d1e40391 (patch)
tree04f842baddd222fdaa5f0ca71b5c7a6b94a3496d /kernel/trace/trace_benchmark.c
parent964f7b6b785651a75ef1cbad43a393ca52d4b4f7 (diff)
downloadtalos-op-linux-198376cd8877a612cc6494201b815c36d1e40391.tar.gz
talos-op-linux-198376cd8877a612cc6494201b815c36d1e40391.zip
tracing: Eliminate double free on failure of allocation on boot up
If allocation of the max_buffer fails on boot up, the error path will free both per_cpu data structures from the buffers. With the new redesign of the code, those structures are freed if allocations failed. That is, the helper function that allocates the buffers will free the per cpu data on failure. No need to do it again. In fact, the second free will cause a bug as the code can not handle a double free. Link: http://lkml.kernel.org/p/20140603042803.27308.30956.stgit@yunodevel Signed-off-by: Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_benchmark.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud