]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd051f298c245a0bb5219304ca76fc47a7badeee8
treecb139989f63ebc52363410cb0042136172c0e209
parent169c9329af59db8a897eb570aaef7c6200ec4a82
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