]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit63b651291f9e59f9b7003012601f410ab0cf3d7e
tree2a2a98fe29e2ea0d69178e3c92622ff3a67ffe57
parentc4ae82ef17c5fa5fd2329add736a3f5da9c8b290
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: 9a8310ba4426 ("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