diff options
| author | Dan Carpenter <[email protected]> | 2022-10-28 15:02:24 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2023-02-06 23:13:02 +0000 |
| commit | 3f4870df1b15d62665cb86ca116c8c9cf0e830b0 (patch) | |
| tree | 41a31526b8ddda317d57c23d2fa6671e6a284ca3 /drivers/net/ethernet/intel/ice/ice_switch.c | |
| parent | ice: Fix disabling Rx VLAN filtering with port VLAN enabled (diff) | |
| download | kernel-3f4870df1b15d62665cb86ca116c8c9cf0e830b0.tar.gz kernel-3f4870df1b15d62665cb86ca116c8c9cf0e830b0.zip | |
ice: Fix off by one in ice_tc_forward_to_queue()
The > comparison should be >= to prevent reading one element beyond
the end of the array.
The "vsi->num_rxq" is not strictly speaking the number of elements in
the vsi->rxq_map[] array. The array has "vsi->alloc_rxq" elements and
"vsi->num_rxq" is less than or equal to the number of elements in the
array. The array is allocated in ice_vsi_alloc_arrays(). It's still
an off by one but it might not access outside the end of the array.
Fixes: 143b86f346c7 ("ice: Enable RX queue selection using skbedit action")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Amritha Nambiar <[email protected]>
Tested-by: Bharathi Sreenivas <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_switch.c')
0 files changed, 0 insertions, 0 deletions
