diff options
author | 2022-10-20 12:49:45 +0300 | |
---|---|---|
committer | 2022-11-19 00:56:15 +0100 | |
commit | adcd7118caadac54666081be39bbbc3e9b5e1f7d (patch) | |
tree | 25bdbb1332bdf7ac5404b40e6f9a897e10ec8d36 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux (diff) | |
download | wireguard-linux-adcd7118caadac54666081be39bbbc3e9b5e1f7d.tar.xz wireguard-linux-adcd7118caadac54666081be39bbbc3e9b5e1f7d.zip |
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 <adobriyan@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions