Revision ef963ae427aa4669905e0a96b3bd9d44dc85db32 authored by Colin Ian King on 31 March 2021, 14:46:28 UTC, committed by Tony Nguyen on 13 April 2021, 18:50:38 UTC
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>
1 parent debb9df
File | Mode | Size |
---|---|---|
README.rst | -rw-r--r-- | 1.9 KB |
functions.sh | -rw-r--r-- | 8.5 KB |
parameters.sh | -rw-r--r-- | 3.1 KB |
pktgen_bench_xmit_mode_netif_receive.sh | -rwxr-xr-x | 3.2 KB |
pktgen_bench_xmit_mode_queue_xmit.sh | -rwxr-xr-x | 2.4 KB |
pktgen_sample01_simple.sh | -rwxr-xr-x | 2.5 KB |
pktgen_sample02_multiqueue.sh | -rwxr-xr-x | 2.7 KB |
pktgen_sample03_burst_single_flow.sh | -rwxr-xr-x | 3.1 KB |
pktgen_sample04_many_flows.sh | -rwxr-xr-x | 3.1 KB |
pktgen_sample05_flow_per_thread.sh | -rwxr-xr-x | 2.8 KB |
pktgen_sample06_numa_awared_queue_irq_affinity.sh | -rwxr-xr-x | 3.6 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...