]> www.infradead.org Git - users/dwmw2/linux.git/commit
rtnetlink: Return int from rtnl_af_register().
authorKuniyuki Iwashima <kuniyu@amazon.com>
Wed, 16 Oct 2024 18:53:56 +0000 (11:53 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Oct 2024 09:02:05 +0000 (11:02 +0200)
commit26eebdc4b005ccd4cf63f4fef4c9c0adf9bfa380
tree68197c23878e90e65c85ff525de86ddc8b6089c9
parenta0b63c6457e100b84b1ff9179bc328c0924de75c
rtnetlink: Return int from rtnl_af_register().

The next patch will add init_srcu_struct() in rtnl_af_register(),
then we need to handle its error.

Let's add the error handling in advance to make the following
patch cleaner.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/rtnetlink.h
net/bridge/br_netlink.c
net/core/rtnetlink.c
net/ipv4/devinet.c
net/ipv6/addrconf.c
net/mctp/device.c
net/mpls/af_mpls.c