Skip to content
Snippets Groups Projects
Commit 50431b45 authored by Wang Hai's avatar Wang Hai Committed by Daniel Borkmann
Browse files

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: 04949ccc ("tools: bpftool: add net attach command to attach XDP on interface")
Signed-off-by: default avatarWang Hai <wanghai38@huawei.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20201113115152.53178-1-wanghai38@huawei.com
parent 96021828
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment