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)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Jun 2017 22:47:10 +0000 (00:47 +0200)
commitabcfcd047b66d66de0cbe2f79b30127274154623
tree9921a143bf1e98df28986e877fc7a6909ebc60d5
parente246c0986e5c48b97d1532720de2ff4dfaccc3ac
ipv6: fix the use of pcpu_tstats in ip6_tunnel

commit abb6013cca147ad940b0e9fee260d2d9e93b7018 upstream.

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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
net/ipv6/ip6_tunnel.c