diff options
author | Lorenz Bauer <[email protected]> | 2020-07-09 12:51:51 +0100 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-07-09 23:41:37 +0200 |
commit | f43cb0d672aa8eb09bfdb779de5900c040487d1d (patch) | |
tree | 7091bfdbb53f352d9e692aeb7d245cfab7807d70 /lib/mpi/mpi-add.c | |
parent | c9a368f1c0fbe2e3a21ebf231caeae58b18b2681 (diff) |
selftests: bpf: Fix detach from sockmap tests
Fix sockmap tests which rely on old bpf_prog_dispatch behaviour.
In the first case, the tests check that detaching without giving
a program succeeds. Since these are not the desired semantics,
invert the condition. In the second case, the clean up code doesn't
supply the necessary program fds.
Fixes: bb0de3131f4c ("bpf: sockmap: Require attach_bpf_fd when detaching a program")
Reported-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Lorenz Bauer <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Jakub Sitnicki <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions