diff options
author | Alexey Dobriyan <[email protected]> | 2022-10-20 12:49:45 +0300 |
---|---|---|
committer | Jason A. Donenfeld <[email protected]> | 2022-11-19 00:56:15 +0100 |
commit | adcd7118caadac54666081be39bbbc3e9b5e1f7d (patch) | |
tree | 25bdbb1332bdf7ac5404b40e6f9a897e10ec8d36 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 23a60a03d9a9980d1e91190491ceea0dc58fae62 (diff) |
perf/x86: Make struct p4_event_bind::cntr signed array
struct p4_event_bind::cntr[][] should be signed because of
the following code:
int i, j;
for (i = 0; i < P4_CNTR_LIMIT; i++) {
---> j = bind->cntr[thread][i];
if (j != -1 && !test_bit(j, used_mask))
return j;
}
Making this member unsigned will make "j" 255 and fail "j != -1"
comparison.
Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions