WSL2-Linux-Kernel/drivers/net/ethernet/marvell
Dan Carpenter ab91b2e892 net: mvpp2: Don't re-use loop iterator
[ Upstream commit 0aa3ca956c46d849775eae1816cef8fe4bc8b50e ]

This function has a nested loop.  The problem is that both the inside
and outside loop use the same variable as an iterator.  I found this
via static analysis so I'm not sure the impact.  It could be that it
loops forever or, more likely, the loop exits early.

Fixes: 3a616b92a9 ("net: mvpp2: Add TX flow control support for jumbo frames")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/eaa8f403-7779-4d81-973d-a9ecddc0bf6f@stanley.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-19 05:45:32 +02:00
..
mvpp2 net: mvpp2: Don't re-use loop iterator 2024-08-19 05:45:32 +02:00
octeontx2 octeontx2-af: fix issue with IPv4 match for RSS 2024-07-18 13:07:39 +02:00
prestera
Kconfig
Makefile
mv643xx_eth.c ethernet: constify references to netdev->dev_addr in drivers 2024-01-05 15:13:37 +01:00
mvmdio.c
mvneta.c ethernet: constify references to netdev->dev_addr in drivers 2024-01-05 15:13:37 +01:00
mvneta_bm.c
mvneta_bm.h
pxa168_eth.c ethernet: constify references to netdev->dev_addr in drivers 2024-01-05 15:13:37 +01:00
skge.c eth: remove copies of the NAPI_POLL_WEIGHT define 2023-10-19 23:05:34 +02:00
skge.h
sky2.c eth: remove copies of the NAPI_POLL_WEIGHT define 2023-10-19 23:05:34 +02:00
sky2.h sky2: Make sure there is at least one frag_addr available 2023-10-25 11:59:00 +02:00