aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_ethtool.c
diff options
context:
space:
mode:
authorAleksandr Mishin <[email protected]>2024-03-28 16:55:05 +0000
committerDavid S. Miller <[email protected]>2024-04-03 10:00:33 +0000
commitef15ddeeb6bee87c044bf7754fac524545bf71e8 (patch)
treeed0ad004cc58d6300556d4061fe04f215ee0b2ca /drivers/net/ethernet/intel/ice/ice_ethtool.c
parentMAINTAINERS: mlx5: Add Tariq Toukan (diff)
downloadkernel-ef15ddeeb6bee87c044bf7754fac524545bf71e8.tar.gz
kernel-ef15ddeeb6bee87c044bf7754fac524545bf71e8.zip
octeontx2-af: Add array index check
In rvu_map_cgx_lmac_pf() the 'iter', which is used as an array index, can reach value (up to 14) that exceed the size (MAX_LMAC_COUNT = 8) of the array. Fix this bug by adding 'iter' value check. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 91c6945ea1f9 ("octeontx2-af: cn10k: Add RPM MAC support") Signed-off-by: Aleksandr Mishin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_ethtool.c')
0 files changed, 0 insertions, 0 deletions