diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 84a09f599131f479154a1a9f4850f30e61d07908..a24cde236330dec9c551c43452ccb435ad21580e 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -1258,8 +1258,10 @@ static int __net_init sctp_defaults_init(struct net *net) return 0; +#ifdef CONFIG_PROC_FS err_init_proc: cleanup_sctp_mibs(net); +#endif err_init_mibs: sctp_sysctl_net_unregister(net); err_sysctl_register: