ipv6: introduce ip6_rt_put()
As suggested by Eric, we could introduce a helper function for ipv6 too, to avoid checking if rt is NULL before dst_release(). Cc: Eric Dumazet <eric.dumazet@gmail.com> Cc: David S. Miller <davem@davemloft.net> Signed-off-by:Cong Wang <amwang@redhat.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/ip6_fib.h 9 additions, 0 deletionsinclude/net/ip6_fib.h
- net/ipv6/addrconf.c 3 additions, 4 deletionsnet/ipv6/addrconf.c
- net/ipv6/anycast.c 1 addition, 1 deletionnet/ipv6/anycast.c
- net/ipv6/fib6_rules.c 1 addition, 1 deletionnet/ipv6/fib6_rules.c
- net/ipv6/ip6_gre.c 1 addition, 1 deletionnet/ipv6/ip6_gre.c
- net/ipv6/ip6_output.c 2 additions, 2 deletionsnet/ipv6/ip6_output.c
- net/ipv6/ip6_tunnel.c 2 additions, 3 deletionsnet/ipv6/ip6_tunnel.c
- net/ipv6/mcast.c 2 additions, 2 deletionsnet/ipv6/mcast.c
- net/ipv6/ndisc.c 3 additions, 4 deletionsnet/ipv6/ndisc.c
- net/ipv6/netfilter/ip6t_rpfilter.c 1 addition, 1 deletionnet/ipv6/netfilter/ip6t_rpfilter.c
- net/ipv6/route.c 7 additions, 7 deletionsnet/ipv6/route.c
Please register or sign in to comment