diff options
| author | YueHaibing <[email protected]> | 2018-05-11 11:21:42 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-05-30 18:35:31 +0000 |
| commit | ab4e32ff5aa797eaea551dbb67946e2fcb56cc7e (patch) | |
| tree | 3ace599c7ac233126ebe83730c5c184da44f2ca5 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | perf test: "Session topology" dumps core on s390 (diff) | |
| download | kernel-ab4e32ff5aa797eaea551dbb67946e2fcb56cc7e.tar.gz kernel-ab4e32ff5aa797eaea551dbb67946e2fcb56cc7e.zip | |
perf bpf: Fix NULL return handling in bpf__prepare_load()
bpf_object__open()/bpf_object__open_buffer can return error pointer or
NULL, check the return values with IS_ERR_OR_NULL() in bpf__prepare_load
and bpf__prepare_load_buffer
Signed-off-by: YueHaibing <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
