summaryrefslogtreecommitdiff
path: root/tools/lib/api/debug.c
diff options
context:
space:
mode:
authorAndreas Herrmann <aherrmann@suse.de>2023-03-30 10:42:02 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2023-04-04 15:39:56 +0300
commit337fa2db04785c60fc3aa736af98ce8358f87d34 (patch)
treeb7fe2a7d523a52f20e5ea900b7f4b5b9ae3325ef /tools/lib/api/debug.c
parent5a892c3da39fae73d008cc43706ff29456fa8cf1 (diff)
downloadlinux-337fa2db04785c60fc3aa736af98ce8358f87d34.tar.xz
perf bench numa: Fix type of loop iterator in do_work, it should be 'long'
'j' is of type int and start/end are of type 'long'. Thus 'j' might become negative and cause segfault in access_data(). Fix it by using 'long' for 'j' as well. Reviewed-by: James Clark <james.clark@arm.com> Signed-off-by: Andreas Herrmann <aherrmann@suse.de> Link: https://lore.kernel.org/r/20230330074202.14052-1-aherrmann@suse.de Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/api/debug.c')
0 files changed, 0 insertions, 0 deletions