Skip to content
Commit 53f7b55f authored by Wei Fang's avatar Wei Fang Committed by Greg Kroah-Hartman
Browse files

net: enetc: check the index of the SFI rather than the handle

[ Upstream commit 299efdc2 ]

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: 888ae5a3

 ("net: enetc: add tc flower psfp offload driver")
Signed-off-by: default avatarWei Fang <wei.fang@nxp.com>
Reviewed-by: default avatarLeon Romanovsky <leonro@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a0cb0029
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment