aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent/plugin_function.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2014-01-15 01:45:25 +0000
committerArnaldo Carvalho de Melo <[email protected]>2014-01-15 18:10:28 +0000
commit3026bba3c37711234771349ca020d9a85e572f60 (patch)
tree469bcf0f9b8b1e0f5dd67935e6185bc4fe9b0e07 /tools/lib/traceevent/plugin_function.c
parenttools lib traceevent: Add state member to struct trace_seq (diff)
downloadkernel-3026bba3c37711234771349ca020d9a85e572f60.tar.gz
kernel-3026bba3c37711234771349ca020d9a85e572f60.zip
tools lib traceevent: Check return value of realloc()
If realloc() fails, it'll leak the buffer. Also increate buffer size only if the allocation succeeded. Signed-off-by: Namhyung Kim <[email protected]> Reviewed-by: Jiri Olsa <[email protected]> Acked-by: Steven Rostedt <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Steven Rostedt <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/lib/traceevent/plugin_function.c')
0 files changed, 0 insertions, 0 deletions