]> git.baikalelectronics.ru Git - kernel.git/commit
adding missing rcu_read_unlock in ipxip6_rcv
authorNikita V. Shirokov <tehnerd@fb.com>
Thu, 7 Dec 2017 01:15:43 +0000 (17:15 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Dec 2017 18:59:37 +0000 (13:59 -0500)
commit08986e23a274ad8ce0eae55687484d889c0f4a9e
tree936133a50a718d218502281293909aff1ff027bc
parent043078dc1658b803e155485439b115de2d32a0f1
adding missing rcu_read_unlock in ipxip6_rcv

commit 0b8b3a8de6df ("ip6_tunnel: add collect_md mode to IPv6 tunnels")
introduced new exit point in  ipxip6_rcv. however rcu_read_unlock is
missing there. this diff is fixing this

v1->v2:
 instead of doing rcu_read_unlock in place, we are going to "drop"
 section (to prevent skb leakage)

Fixes: 0b8b3a8de6df ("ip6_tunnel: add collect_md mode to IPv6 tunnels")
Signed-off-by: Nikita V. Shirokov <tehnerd@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_tunnel.c