Files
android_kernel_xiaomi_sm8450/drivers/net/ethernet/intel/ice
Colin Ian King 615457a226 ice: fix potential infinite loop because loop counter being too small
Currently the for-loop counter i is a u8 however it is being checked
against a maximum value hw->num_tx_sched_layers which is a u16. Hence
there is a potential wrap-around of counter i back to zero if
hw->num_tx_sched_layers is greater than 255.  Fix this by making i
a u16.

Addresses-Coverity: ("Infinite loop")
Fixes: b36c598c99 ("ice: Updates to Tx scheduler code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2019-11-08 16:10:51 -08:00
..
2019-09-12 11:37:38 -07:00
2019-09-12 11:37:38 -07:00
2019-05-30 10:57:55 -07:00
2019-09-12 11:37:38 -07:00
2019-09-12 11:37:38 -07:00
2019-09-12 11:37:38 -07:00
2019-09-05 08:13:41 -07:00
2019-09-12 11:37:38 -07:00
2019-09-12 11:37:38 -07:00
2019-09-12 11:39:25 -07:00
2018-03-26 09:59:08 -07:00
2019-01-15 12:38:44 -08:00
2019-09-05 08:13:40 -07:00
2019-09-12 11:37:38 -07:00