]> 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)
commitcc8e3acdfcdc944442ec9def0cf2fdd2d6cc7d07
treecb139989f63ebc52363410cb0042136172c0e209
parent68fa45b0c42a40e2fc271147ca5059ffa28980ee
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