ipv6: remove unnecessary dst_hold() in ip6_fragment()
authorWei Wang <weiwan@google.com>
Sat, 17 Jun 2017 17:42:24 +0000 (10:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Jun 2017 02:53:59 +0000 (22:53 -0400)
commit1758fd4688eb92c796e75bdb1d256dc558ef9581
tree3d4aab23a22af1426d5fdea0bed238fa2f255caf
parent273889e306256e95ea55d5ebaef99310cf589def
ipv6: remove unnecessary dst_hold() in ip6_fragment()

In ipv6 tx path, rcu_read_lock() is taken so that dst won't get freed
during the execution of ip6_fragment(). Hence, no need to hold dst in
it.

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/ip6_output.c