[PATCH] net: plip: fix break; causing plip to never transmit

Subsystems: networking drivers, the rest

STALE708d

3 messages, 3 authors, 2024-10-20 · open the first message on its own page

[PATCH] net: plip: fix break; causing plip to never transmit

From: Jakub Boehm via B4 Relay <devnull+boehm.jakub.gmail.com@kernel.org>
Date: 2024-10-15 15:16:12

From: Jakub Boehm <redacted>

Since commit
  71ae2cb30531 ("net: plip: Fix fall-through warnings for Clang")

plip was not able to send any packets, this patch replaces one
unintended break; with fallthrough; which was originally missed by
commit 9525d69a3667 ("net: plip: mark expected switch fall-throughs").

I have verified with a real hardware PLIP connection that everything
works once again after applying this patch.

Fixes: 71ae2cb30531 ("net: plip: Fix fall-through warnings for Clang")
Signed-off-by: Jakub Boehm <redacted>
---
 drivers/net/plip/plip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/plip/plip.c b/drivers/net/plip/plip.c
index e39bfaefe8c50ba72238d04f08deaa46ca650c70..d81163bc910a3bcaa770a10c0e2d7d9b334a381b 100644
--- a/drivers/net/plip/plip.c
+++ b/drivers/net/plip/plip.c
@@ -815,7 +815,7 @@ plip_send_packet(struct net_device *dev, struct net_local *nl,
 				return HS_TIMEOUT;
 			}
 		}
-		break;
+		fallthrough;
 
 	case PLIP_PK_LENGTH_LSB:
 		if (plip_send(nibble_timeout, dev,
---
base-commit: 8e929cb546ee42c9a61d24fae60605e9e3192354
change-id: 20241015-net-plip-tx-fix-822e94e58a6e

Best regards,
-- 
Jakub Boehm [off-list ref]

Re: [PATCH] net: plip: fix break; causing plip to never transmit

From: Simon Horman <horms@kernel.org>
Date: 2024-10-16 14:17:20

On Tue, Oct 15, 2024 at 05:16:04PM +0200, Jakub Boehm via B4 Relay wrote:
From: Jakub Boehm <redacted>

Since commit
  71ae2cb30531 ("net: plip: Fix fall-through warnings for Clang")

plip was not able to send any packets, this patch replaces one
unintended break; with fallthrough; which was originally missed by
commit 9525d69a3667 ("net: plip: mark expected switch fall-throughs").

I have verified with a real hardware PLIP connection that everything
works once again after applying this patch.

Fixes: 71ae2cb30531 ("net: plip: Fix fall-through warnings for Clang")
Signed-off-by: Jakub Boehm <redacted>
Reviewed-by: Simon Horman <horms@kernel.org>

Re: [PATCH] net: plip: fix break; causing plip to never transmit

From: patchwork-bot+netdevbpf@kernel.org
Date: 2024-10-20 14:50:33

Hello:

This patch was applied to netdev/net.git (main)
by Andrew Lunn [off-list ref]:

On Tue, 15 Oct 2024 17:16:04 +0200 you wrote:
From: Jakub Boehm <redacted>

Since commit
  71ae2cb30531 ("net: plip: Fix fall-through warnings for Clang")

plip was not able to send any packets, this patch replaces one
unintended break; with fallthrough; which was originally missed by
commit 9525d69a3667 ("net: plip: mark expected switch fall-throughs").

[...]
Here is the summary with links:
  - net: plip: fix break; causing plip to never transmit
    https://git.kernel.org/netdev/net/c/f99cf996ba5a

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help