]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
bpf: Fix tcp_synrto_kern.c sample program
authorLawrence Brakmo <brakmo@fb.com>
Sat, 11 Nov 2017 06:19:50 +0000 (22:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 06:52:41 +0000 (15:52 +0900)
commit7863f46bac3a1716f7d547c53f367ddf509f031e
tree22cf2ed593dad0aab4bf275252b9c906ddf46c83
parent8d6e79d3ce13e34957de87f7584cbf1bcde74c57
bpf: Fix tcp_synrto_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_synrto_kern.c