]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: call dst_hold_safe() properly
authorWei Wang <weiwan@google.com>
Sat, 17 Jun 2017 17:42:35 +0000 (10:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Jun 2017 02:54:00 +0000 (22:54 -0400)
commitfa8e48626d9e0007a9a3b4243bdce536cae04a96
treebc94ee3f9f25c990ffd1c8367a9c081289648c27
parentf94809bf98597b4ee58b71c99bead3d2646e06c2
ipv6: call dst_hold_safe() properly

Similar as ipv4, ipv6 path also needs to call dst_hold_safe() when
necessary to avoid double free issue on the dst.

Signed-off-by: Wei Wang <weiwan@google.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c
net/ipv6/route.c