mirror_ubuntu-kernels/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
..
ice_adminq_cmd.h ice: Implement Dynamic Device Personalization (DDP) download 2019-09-12 11:19:16 -07:00
ice_common.c ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
ice_common.h ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
ice_controlq.c ice: separate out control queue lock creation 2019-07-31 10:23:04 -07:00
ice_controlq.h ice: Trivial cosmetic changes 2019-05-30 10:57:55 -07:00
ice_dcb_lib.c ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
ice_dcb_lib.h ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
ice_dcb.c ice: Allow for delayed LLDP MIB change registration 2019-09-05 08:13:41 -07:00
ice_dcb.h ice: Allow for delayed LLDP MIB change registration 2019-09-05 08:13:41 -07:00
ice_devids.h ice: Change device ID define names to align with branding string 2018-10-24 13:53:30 -07:00
ice_ethtool.c ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
ice_flex_pipe.c ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
ice_flex_pipe.h ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
ice_flex_type.h ice: Initialize DDP package structures 2019-09-12 11:28:40 -07:00
ice_hw_autogen.h ice: Implement Dynamic Device Personalization (DDP) download 2019-09-12 11:19:16 -07:00
ice_lan_tx_rx.h ice: update Tx context struct 2019-09-05 08:13:41 -07:00
ice_lib.c ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
ice_lib.h ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
ice_main.c ice: Bump version 2019-09-12 11:39:25 -07:00
ice_nvm.c ice: Add handler for ethtool selftest 2019-05-29 02:44:12 -07:00
ice_osdep.h ice: Start hardware initialization 2018-03-26 09:59:08 -07:00
ice_sched.c ice: fix potential infinite loop because loop counter being too small 2019-11-08 16:10:51 -08:00
ice_sched.h ice: Add code for DCB initialization part 3/4 2019-04-18 08:38:47 -07:00
ice_sriov.c ice: Add support for new PHY types 2019-01-15 12:38:44 -08:00
ice_sriov.h ice: Add handlers for VF netdevice operations 2018-10-03 07:42:30 -07:00
ice_status.h ice: Add handler for ethtool selftest 2019-05-29 02:44:12 -07:00
ice_switch.c ice: Fix resource leak in ice_remove_rule_internal() 2019-09-03 16:08:54 -07:00
ice_switch.h ice: Minor cleanup in ice_switch.h 2019-05-29 02:55:34 -07:00
ice_txrx.c ice: small efficiency fixes 2019-09-05 08:13:40 -07:00
ice_txrx.h ice: Set WB_ON_ITR when we don't re-enable interrupts 2019-08-20 14:21:21 -07:00
ice_type.h ice: Implement Dynamic Device Personalization (DDP) download 2019-09-12 11:19:16 -07:00
ice_virtchnl_pf.c ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
ice_virtchnl_pf.h ice: add support for virtchnl_queue_select.[tx|rx]_queues bitmap 2019-08-26 23:37:16 -07:00
ice.h ice: Enable DDP package download 2019-09-12 11:37:38 -07:00
Makefile ice: Implement Dynamic Device Personalization (DDP) download 2019-09-12 11:19:16 -07:00