diff options
| author | Geliang Tang <[email protected]> | 2024-07-09 09:16:19 +0000 |
|---|---|---|
| committer | Martin KaFai Lau <[email protected]> | 2024-07-10 18:56:22 +0000 |
| commit | adae187ebedcd95d02f045bc37dfecfd5b29434b (patch) | |
| tree | 3ab1481259481e50f21d795c993963e829650550 /tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c | |
| parent | selftests/bpf: Add ASSERT_OK_FD macro (diff) | |
| download | kernel-adae187ebedcd95d02f045bc37dfecfd5b29434b.tar.gz kernel-adae187ebedcd95d02f045bc37dfecfd5b29434b.zip | |
selftests/bpf: Close fd in error path in drop_on_reuseport
In the error path when update_lookup_map() fails in drop_on_reuseport in
prog_tests/sk_lookup.c, "server1", the fd of server 1, should be closed.
This patch fixes this by using "goto close_srv1" lable instead of "detach"
to close "server1" in this case.
Fixes: 0ab5539f8584 ("selftests/bpf: Tests for BPF_SK_LOOKUP attach point")
Acked-by: Eduard Zingerman <[email protected]>
Signed-off-by: Geliang Tang <[email protected]>
Link: https://lore.kernel.org/r/86aed33b4b0ea3f04497c757845cff7e8e621a2d.1720515893.git.tanggeliang@kylinos.cn
Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c')
0 files changed, 0 insertions, 0 deletions
