diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c index 34956ceb94b6..329e6c1f24b1 100644 --- a/net/sctp/sysctl.c +++ b/net/sctp/sysctl.c @@ -337,7 +337,7 @@ static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write, void __user *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; bool changed = false; char *none = "none";