OSDN Git Service

bpf: Fix tcp_cong_kern.c sample program
authorLawrence Brakmo <brakmo@fb.com>
Sat, 11 Nov 2017 06:19:53 +0000 (22:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 06:52:41 +0000 (15:52 +0900)
commit2ff969fbe2bfa4486b66226917352d4bb12ec1cb
tree264456174e35e9f3b3ec3259774814c3e3367723
parenta4174f0560f849317239478b1b22afbf03a6eda2
bpf: Fix tcp_cong_kern.c sample program

The program was returning -1 in some cases which is not allowed
by the verifier any longer.

Fixes: 390ee7e29fc8 ("bpf: enforce return code for cgroup-bpf programs")
Signed-off-by: Lawrence Brakmo <brakmo@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/tcp_cong_kern.c