]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc4ae82ef17c5fa5fd2329add736a3f5da9c8b290
tree264456174e35e9f3b3ec3259774814c3e3367723
parentc133eb3bace95b493a3896fcd7c93e988d058969
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: 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_cong_kern.c