samples/bpf: test_cgrp2_sock2: fix an off by one
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 13 Jul 2018 15:05:37 +0000 (18:05 +0300)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 16 Jul 2018 22:01:09 +0000 (15:01 -0700)
commitee583014a9d8cc48cb4969f87cc02c12b966fabc
treedb0f40dd24b7a57cd486299c186f7bee0915318f
parentb0294bc1ad19e9d2dd03df5faa1ccc395d4ddd4b
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>
samples/bpf/test_cgrp2_sock2.c