]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Fri, 3 Mar 2017 10:31:18 +0000 (11:31 +0100)
commit6da68047088296c48bf2a2583152335726c74272
treea8207d5ce6416303d979b3d92390108a1c0b5697
parentd66961bfd950db50ec7278430357a78afb7f14f4
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: Jiri Slaby <jslaby@suse.cz>
net/ipv6/ip6_tunnel.c