bpf: Fix tcp_iw_kern.c sample program
authorLawrence Brakmo <brakmo@fb.com>
Sat, 11 Nov 2017 06:19:54 +0000 (22:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 06:52:41 +0000 (15:52 +0900)
commite1853319fc4c7279a3561b1844af4a02487c93ef
tree2a2a98fe29e2ea0d69178e3c92622ff3a67ffe57
parent2ff969fbe2bfa4486b66226917352d4bb12ec1cb
bpf: Fix tcp_iw_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_iw_kern.c