mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ipv6: fix the use of pcpu_tstats in sit
when read/write the 64bit data, the correct lock should be hold. Signed-off-by: Li RongQing <roy.qing.li@gmail.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Paul Keith <javelinanddart@gmail.com> Change-Id: Ie9c73149b86eb028e1646d1001bdb4310a72fe14
This commit is contained in:
parent
ad74346428
commit
2e641339f3
1 changed files with 2 additions and 0 deletions
|
@ -604,8 +604,10 @@ static int ipip6_rcv(struct sk_buff *skb)
|
|||
}
|
||||
|
||||
tstats = this_cpu_ptr(tunnel->dev->tstats);
|
||||
u64_stats_update_begin(&tstats->syncp);
|
||||
tstats->rx_packets++;
|
||||
tstats->rx_bytes += skb->len;
|
||||
u64_stats_update_end(&tstats->syncp);
|
||||
|
||||
__skb_tunnel_rx(skb, tunnel->dev);
|
||||
|
||||
|
|
Loading…
Reference in a new issue