diff options
author | Dan Carpenter | 2018-07-13 17:05:37 +0200 |
---|---|---|
committer | Alexei Starovoitov | 2018-07-17 00:01:09 +0200 |
commit | ee583014a9d8cc48cb4969f87cc02c12b966fabc (patch) | |
tree | db0f40dd24b7a57cd486299c186f7bee0915318f /samples/bpf/xdp2skb_meta.sh | |
parent | samples: bpf: ensure that we don't load over MAX_PROGS programs (diff) | |
download | kernel-qcow2-linux-ee583014a9d8cc48cb4969f87cc02c12b966fabc.tar.gz kernel-qcow2-linux-ee583014a9d8cc48cb4969f87cc02c12b966fabc.tar.xz kernel-qcow2-linux-ee583014a9d8cc48cb4969f87cc02c12b966fabc.zip |
samples/bpf: test_cgrp2_sock2: fix an off by one
"prog_cnt" is the number of elements which are filled out in prog_fd[]
so the test should be >= instead of >.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf/xdp2skb_meta.sh')
0 files changed, 0 insertions, 0 deletions