diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c index 2df0b5fa22f8..3ed15ea96ec3 100644 --- a/net/sctp/sysctl.c +++ b/net/sctp/sysctl.c @@ -503,7 +503,7 @@ static int proc_sctp_do_alpha_beta(struct ctl_table *ctl, int write, static int proc_sctp_do_auth(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) { - struct net *net = current->nsproxy->net_ns; + struct net *net = container_of(ctl->data, struct net, sctp.auth_enable); struct ctl_table tbl; int new_value, ret;