diff options
author | YueHaibing <[email protected]> | 2018-05-11 19:21:42 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-05-16 10:01:55 -0300 |
commit | 7a36a287de9fbb1ba906e70573d3f2315f7fd609 (patch) | |
tree | 6ac544e378616c0522a0162d5ed1d42bab7efe81 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3cdc5c2cb924acb43a93241e75c61570eab71614 (diff) |
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/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions