aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorGeliang Tang <[email protected]>2024-05-23 14:49:57 +0800
committerDaniel Borkmann <[email protected]>2024-06-03 19:32:54 +0200
commitd95ba15b97847f4ae520db83bd98b61d50fb3068 (patch)
tree096c6f9f562630a29ba3bfaffad1c61c7772e346 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parentec1249d3278183d419276b9a7fe73591cd3dd505 (diff)
selftests/bpf: Fix tx_prog_fd values in test_sockmap
The values of tx_prog_fd in run_options() should not be 0, so set it as -1 in else branch, and test it using "if (tx_prog_fd > 0)" condition, not "if (tx_prog_fd)" or "if (tx_prog_fd >= 0)". Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Tested-by: Jakub Sitnicki <[email protected]> Acked-by: John Fastabend <[email protected]> Link: https://lore.kernel.org/bpf/08b20ffc544324d40939efeae93800772a91a58e.1716446893.git.tanggeliang@kylinos.cn
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions