diff options
| author | Lorenz Bauer <[email protected]> | 2020-07-09 11:51:51 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-07-09 21:41:37 +0000 |
| commit | f43cb0d672aa8eb09bfdb779de5900c040487d1d (patch) | |
| tree | 7091bfdbb53f352d9e692aeb7d245cfab7807d70 /drivers/usb/cdns3/cdns3-ti.c | |
| parent | bpf: net: Avoid incorrect bpf_sk_reuseport_detach call (diff) | |
| download | kernel-f43cb0d672aa8eb09bfdb779de5900c040487d1d.tar.gz kernel-f43cb0d672aa8eb09bfdb779de5900c040487d1d.zip | |
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 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions
