ipv6: Add fib6_nh_init and release to stubs
authorDavid Ahern <dsahern@gmail.com>
Fri, 5 Apr 2019 23:30:24 +0000 (16:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 22:22:40 +0000 (15:22 -0700)
commit1aefd3de7bc667115bb77cb0bc21e874c7e190fc
treecb139989f63ebc52363410cb0042136172c0e209
parent3b8b11f96616c2e763ebcc093b778b309fc07a92
ipv6: Add fib6_nh_init and release to stubs

Add fib6_nh_init and fib6_nh_release to ipv6_stubs. If fib6_nh_init fails,
callers should not invoke fib6_nh_release, so there is no reason to have
a dummy stub for the IPv6 is not enabled case.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipv6_stubs.h
net/ipv6/addrconf_core.c
net/ipv6/af_inet6.c