diff options
author | Wang Hai <wanghai38@huawei.com> | 2020-11-13 19:51:52 +0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-11-13 15:59:13 +0100 |
commit | 50431b45685b600fc2851a3f2b53e24643efe6d3 (patch) | |
tree | 25b30c6cb94fa06e95c2e562f611eedfd9ae8544 /tools/testing/selftests/bpf/prog_tests/test_global_funcs.c | |
parent | 9602182810cc15e241f06c63c90b828ef63d0507 (diff) | |
download | linux-50431b45685b600fc2851a3f2b53e24643efe6d3.tar.gz linux-50431b45685b600fc2851a3f2b53e24643efe6d3.tar.bz2 linux-50431b45685b600fc2851a3f2b53e24643efe6d3.zip |
tools, bpftool: Add missing close before bpftool net attach exit
progfd is created by prog_parse_fd() in do_attach() and before the latter
returns in case of success, the file descriptor should be closed.
Fixes: 04949ccc273e ("tools: bpftool: add net attach command to attach XDP on interface")
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20201113115152.53178-1-wanghai38@huawei.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/test_global_funcs.c')
0 files changed, 0 insertions, 0 deletions