ipv6: fix the use of pcpu_tstats in ip6_tunnel
authorLi RongQing <roy.qing.li@gmail.com>
Thu, 2 Jan 2014 05:20:12 +0000 (13:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Jan 2014 00:37:21 +0000 (19:37 -0500)
commitabb6013cca147ad940b0e9fee260d2d9e93b7018
tree58ff3dd11e53ec545df209e5b386dcdd094228bc
parentfad8da3e085ddf5e661090033287f1a5d62858fc
ipv6: fix the use of pcpu_tstats in ip6_tunnel

when read/write the 64bit data, the correct lock should be hold.

Fixes: 87b6d218f3adb ("tunnel: implement 64 bits statistics")

Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_tunnel.c