diff options
author | Martin KaFai Lau <[email protected]> | 2024-08-29 18:22:14 -0700 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2024-08-30 10:34:47 -0700 |
commit | b408473ea01b2e499d23503e2bf898416da9d7ac (patch) | |
tree | 70c517cb3976788548d24c9af4d968f311166ac6 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 872cf28b8df9c5c3a1e71a88ee750df7c2513971 (diff) |
bpf: Fix a crash when btf_parse_base() returns an error pointer
The pointer returned by btf_parse_base could be an error pointer.
IS_ERR() check is needed before calling btf_free(base_btf).
Fixes: 8646db238997 ("libbpf,bpf: Share BTF relocate-related code with kernel")
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Reviewed-by: Alan Maguire <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions