linux/drivers/net
Wei Fang 2424b456c3 net: enetc: check the index of the SFI rather than the handle
[ Upstream commit 299efdc238 ]

We should check whether the current SFI (Stream Filter Instance) table
is full before creating a new SFI entry. However, the previous logic
checks the handle by mistake and might lead to unpredictable behavior.

Fixes: 888ae5a395 ("net: enetc: add tc flower psfp offload driver")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-17 11:53:38 +02:00
..
appletalk
arcnet
bonding bonding: Fix memory leak when changing bond type to Ethernet 2023-04-26 14:28:34 +02:00
caif
can
dsa net: dsa: mt7530: fix network connectivity with multiple CPU ports 2023-05-17 11:53:38 +02:00
ethernet net: enetc: check the index of the SFI rather than the handle 2023-05-17 11:53:38 +02:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipa
ipvlan
mctp
mdio
netdevsim
pcs net: pcs: xpcs: remove double-read of link state when using AN 2023-05-11 23:03:18 +09:00
phy net: sfp: add quirk enabling 2500Base-x for HG MXPD-483II 2023-05-11 23:02:58 +09:00
plip
ppp
pse-pd
slip
team
usb r8152: move setting r8153b_rx_agg_chg_indicate() 2023-05-17 11:53:34 +02:00
vmxnet3
vxlan
wan
wireguard wireguard: timers: cast enum limits members to int in prints 2023-05-11 23:02:58 +09:00
wireless wifi: ath11k: synchronize ath11k_mac_he_gi_to_nl80211_he_gi()'s return type 2023-05-11 23:03:42 +09:00
wwan net: wwan: t7xx: do not compile with -Werror 2023-05-11 23:02:58 +09:00
xen-netback xen/netback: use same error messages for same errors 2023-04-26 14:28:37 +02:00
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c
veth.c
virtio_net.c virtio_net: suppress cpu stall when free_unused_bufs 2023-05-17 11:53:38 +02:00
vrf.c
vsockmon.c
xen-netfront.c