]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - net/ipv6/route.c
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)
commitad65a2f05695aced349e308193c6e2a6b1d87112
treebc94ee3f9f25c990ffd1c8367a9c081289648c27
parent9514528d92d4cbe086499322370155ed69f5d06c
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