summaryrefslogtreecommitdiffstats
path: root/net/netrom/sysctl_net_netrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/netrom/sysctl_net_netrom.c')
-rw-r--r--net/netrom/sysctl_net_netrom.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/netrom/sysctl_net_netrom.c b/net/netrom/sysctl_net_netrom.c
index ba1c368b3f18..771011b84270 100644
--- a/net/netrom/sysctl_net_netrom.c
+++ b/net/netrom/sysctl_net_netrom.c
@@ -146,9 +146,12 @@ static struct ctl_table nr_table[] = {
{ }
};
-void __init nr_register_sysctl(void)
+int __init nr_register_sysctl(void)
{
nr_table_header = register_net_sysctl(&init_net, "net/netrom", nr_table);
+ if (!nr_table_header)
+ return -ENOMEM;
+ return 0;
}
void nr_unregister_sysctl(void)