diff options
author | Namhyung Kim <[email protected]> | 2016-02-16 23:08:20 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-02-19 19:12:52 -0300 |
commit | 7565bd39c1a63c82350d26a66ea1a1f1bb49ad2e (patch) | |
tree | 811af2fdff6b86cb35e95fbaf2e5878c43b26aa3 /tools/perf/util/trace-event-scripting.c | |
parent | 467ef10c68b90b940412390dcd14bbfe8cc40e73 (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