aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2016-02-16 23:08:20 +0900
committerArnaldo Carvalho de Melo <[email protected]>2016-02-19 19:12:52 -0300
commit7565bd39c1a63c82350d26a66ea1a1f1bb49ad2e (patch)
tree811af2fdff6b86cb35e95fbaf2e5878c43b26aa3 /tools/perf/util/trace-event-scripting.c
parent467ef10c68b90b940412390dcd14bbfe8cc40e73 (diff)
perf callchain: Check return value of add_child()
The create_child() in add_child() can return NULL in case of memory allocation failure. So check the return value and bail out. The proper error handling will be added later. Signed-off-by: Namhyung Kim <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Andi Kleen <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions