aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp')
-rw-r--r--net/sctp/protocol.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index d5ea232c9126..b78e3be69013 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -139,11 +139,12 @@ out_snmp_proc_init:
139 } 139 }
140out_free_percpu: 140out_free_percpu:
141 percpu_counter_destroy(&sctp_sockets_allocated); 141 percpu_counter_destroy(&sctp_sockets_allocated);
142out_nomem:
143 return -ENOMEM;
144#else 142#else
145 return 0; 143 return 0;
146#endif /* CONFIG_PROC_FS */ 144#endif /* CONFIG_PROC_FS */
145
146out_nomem:
147 return -ENOMEM;
147} 148}
148 149
149/* Clean up the proc fs entry for the SCTP protocol. 150/* Clean up the proc fs entry for the SCTP protocol.