net: ethernet: ti: am65-cpsw: Fix forever loop in cleanup code
Subsystems (3)
PATCH v2 1/1 net: ethernet: ti: am65-cpsw: Fix forever loop in cleanup code
This error handling has a typo. It should i++ instead of i--. In the original code the error handling will loop until it crashes.
Fixes da70d184a8c3 ("net: ethernet: ti: am65-cpsw: Introduce multi queue Rx")
Signed-off-by Dan Carpenter <[email protected]>
Reviewed-by Alexander Sverdlin <[email protected]>
Reviewed-by Roger Quadros <[email protected]>
---
v2: The first version of this patch had white space corruption and didn't apply.
drivers/net/ethernet/ti/am65-cpsw-nuss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/ti/am65-cpsw-nuss.c +1 -1
@@ -763,7 +763,7 @@ static int am65_cpsw_nuss_common_open(struct am65_cpsw_common *common)k3_udma_glue_disable_rx_chn (rx_chn->rx_chn); fail_rx: -for (i =0 ; i < common->rx_ch_num_flows; i--) +for (i =0 ; i < common->rx_ch_num_flows; i++)k3_udma_glue_reset_rx_chn (rx_chn->rx_chn, i, &rx_chn->flows[i], am65_cpsw_nuss_rx_cleanup,0 );
Signature · 1 line
2.45.2
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Sat, 28 Sep 2024 13:04:01 +0300 you wrote:
This error handling has a typo. It should i++ instead of i--. In the original code the error handling will loop until it crashes.
Fixes da70d184a8c3 ("net: ethernet: ti: am65-cpsw: Introduce multi queue Rx")Signed-off-by Dan Carpenter <[email protected]>Reviewed-by Alexander Sverdlin <[email protected]>Reviewed-by Roger Quadros <[email protected]>[...]
Here is the summary with links:
- [v2,net] net: ethernet: ti: am65-cpsw: Fix forever loop in cleanup code
https://git.kernel.org/netdev/net/c/3c97fe4f9fbc
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html