gve: fix unmatched u64_stats_update_end()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 10 Nov 2021 08:11:09 +0000 (11:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Nov 2021 14:42:25 +0000 (14:42 +0000)
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.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/google/gve/gve_rx.c

index c8500ba..3d04b5a 100644 (file)
@@ -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);