aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/sysctl.c')
-rw-r--r--net/sctp/sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c
index 60ffbd067ff7..1e385b452047 100644
--- a/net/sctp/sysctl.c
+++ b/net/sctp/sysctl.c
@@ -286,11 +286,11 @@ static struct ctl_table_header * sctp_sysctl_header;
286/* Sysctl registration. */ 286/* Sysctl registration. */
287void sctp_sysctl_register(void) 287void sctp_sysctl_register(void)
288{ 288{
289 sctp_sysctl_header = register_sysctl_paths(sctp_path, sctp_table); 289 sctp_sysctl_header = register_net_sysctl_table(&init_net, sctp_path, sctp_table);
290} 290}
291 291
292/* Sysctl deregistration. */ 292/* Sysctl deregistration. */
293void sctp_sysctl_unregister(void) 293void sctp_sysctl_unregister(void)
294{ 294{
295 unregister_sysctl_table(sctp_sysctl_header); 295 unregister_net_sysctl_table(sctp_sysctl_header);
296} 296}