summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-12-05 22:33:40 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2022-12-05 22:33:40 +0300
commite6cfaf34be9fcd1a8285a294e18986bfc41a409c (patch)
tree99980bc2f566db463d0080a56af31d6b76e230bd /tools/perf/scripts/python/export-to-sqlite.py
parentb52be557e24c47286738276121177a41f54e3b83 (diff)
downloadlinux-e6cfaf34be9fcd1a8285a294e18986bfc41a409c.tar.xz
proc: avoid integer type confusion in get_proc_long
proc_get_long() is passed a size_t, but then assigns it to an 'int' variable for the length. Let's not do that, even if our IO paths are limited to MAX_RW_COUNT (exactly because of these kinds of type errors). So do the proper test in the rigth type. Reported-by: Kyle Zeng <zengyhkyle@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions