aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2017-02-02 17:58:18 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-02-03 10:59:31 -0500
commit0e684b6578ee463ecb5c9a1cd0c20069f063d9f0 (patch)
treed980b1f4016c9349987b299c5f61bcbc091ad256 /tools/perf/util/scripting-engines/trace-event-python.c
parentftrace: Have set_graph_functions handle write with RDWR (diff)
downloadwireguard-linux-0e684b6578ee463ecb5c9a1cd0c20069f063d9f0.tar.xz
wireguard-linux-0e684b6578ee463ecb5c9a1cd0c20069f063d9f0.zip
tracing: Reset parser->buffer to allow multiple "puts"
trace_parser_put() simply frees the allocated parser buffer. But it does not reset the pointer that was freed. This means that if trace_parser_put() is called on the same parser more than once, it will corrupt the allocation system. Setting parser->buffer to NULL after free allows it to be called more than once without any ill effect. Acked-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions