diff options
author | Jakub Boehm <boehm.jakub@gmail.com> | 2024-10-15 17:16:04 +0200 |
---|---|---|
committer | Andrew Lunn <andrew@lunn.ch> | 2024-10-19 23:06:55 +0200 |
commit | f99cf996ba5a315f8b9f13cc21dff0604a0eb749 (patch) | |
tree | 491b7d893ed1aa6a962d96cbbfbfd1c8e7a17946 | |
parent | be2net: fix potential memory leak in be_xmit() (diff) | |
download | linux-f99cf996ba5a315f8b9f13cc21dff0604a0eb749.tar.xz linux-f99cf996ba5a315f8b9f13cc21dff0604a0eb749.zip |
net: plip: fix break; causing plip to never transmit
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 <boehm.jakub@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Message-ID: <20241015-net-plip-tx-fix-v1-1-32d8be1c7e0b@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
-rw-r--r-- | drivers/net/plip/plip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/plip/plip.c b/drivers/net/plip/plip.c index e39bfaefe8c5..d81163bc910a 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, |