Skip to contentSkip to conversation

gve: fix unmatched u64_stats_update_end()

PATCH Applied Dan Carpenter 2 participants 2 messages Nov 10, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gve: fix unmatched u64_stats_update_end()

The u64_stats_update_end() call is supposed to be inside the curly braces so it pairs with the u64_stats_update_begin().

Fixes 37149e9374bf ("gve: Implement packet continuation for RX.")

---
Based on the indenting. Not tested.

 drivers/net/ethernet/google/gve/gve_rx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/google/gve/gve_rx.c +2 -1
index c8500babbd1d..3d04b5aff331 100644
@@ -500,7 +500,8 @@ static struct sk_buff *gve_rx_skb(struct gve_priv *priv, struct gve_rx_ring *rx,
 			rx->rx_copied_pkt++;
 			rx->rx_frag_copy_cnt++;
 			rx->rx_copybreak_pkt++;
-		}	u64_stats_update_end(&rx->statss);
+			u64_stats_update_end(&rx->statss);
+		}
 	} else {
 		if (rx->data.raw_addressing) {
 			int recycle = gve_rx_can_recycle_buffer(page_info);
Signature · 1 line
2.20.1
#1 lore raw
This patch was applied to netdev/net.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:

Quoted 9 lines · On Wed, 10 Nov 2021 11:11:09 +0300 you wrote:

The u64_stats_update_end() call is supposed to be inside the curly braces so it pairs with the u64_stats_update_begin().

Fixes 37149e9374bf ("gve: Implement packet continuation for RX.")

---
Based on the indenting. Not tested.

[...]

Here is the summary with links:
- [net-next] gve: fix unmatched u64_stats_update_end()

    https://git.kernel.org/netdev/net/c/721111b1b29c

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html