summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-03-31 15:46:28 +0100
committerTony Nguyen <anthony.l.nguyen@intel.com>2021-04-13 11:50:38 -0700
commitef963ae427aa4669905e0a96b3bd9d44dc85db32 (patch)
tree14c8e914aa1bc07994b71531b938e1ba6fceb3f0 /tools/perf/scripts/python/stackcollapse.py
parentdebb9df311582c83fe369baa35fa4b92e8a9c58a (diff)
ice: Fix potential infinite loop when using u8 loop counter
A for-loop is using a u8 loop counter that is being compared to a u32 cmp_dcbcfg->numapp to check for the end of the loop. If cmp_dcbcfg->numapp is larger than 255 then the counter j will wrap around to zero and hence an infinite loop occurs. Fix this by making counter j the same type as cmp_dcbcfg->numapp. Addresses-Coverity: ("Infinite loop") Fixes: aeac8ce864d9 ("ice: Recognize 860 as iSCSI port in CEE mode") Signed-off-by: Colin Ian King <colin.king@canonical.com> Tested-by: Tony Brelinski <tonyx.brelinski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions