diff options
author | Andrii Nakryiko <[email protected]> | 2020-04-28 17:27:38 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-04-28 17:35:03 -0700 |
commit | 2d39d7c56f115148b05d1d8c6b8698a5730c8b53 (patch) | |
tree | 2543255be722f52abf7e2cde02c6200a4e102ff2 /tools/lib/bpf/bpf_helpers.h | |
parent | 41017e56af6cf99122c86655f60fe4e1b75ecf48 (diff) |
libbpf: Refactor map creation logic and fix cleanup leak
Factor out map creation and destruction logic to simplify code and especially
error handling. Also fix map FD leak in case of partially successful map
creation during bpf_object load operation.
Fixes: 57a00f41644f ("libbpf: Add auto-pinning of maps when loading BPF objects")
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Toke Høiland-Jørgensen <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions