Commit 157653ce authored by Randy Dunlap's avatar Randy Dunlap Committed by David S. Miller

sctp: fix missing label when PROC_FS=n

Fix missing label when CONFIG_PROC_FS=n:

net/sctp/protocol.c: In function 'sctp_proc_init':
net/sctp/protocol.c:106: error: label 'out_nomem' used but not defined
make[3]: *** [net/sctp/protocol.o] Error 1
Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 40a914fa
...@@ -139,11 +139,12 @@ static __init int sctp_proc_init(void) ...@@ -139,11 +139,12 @@ static __init int sctp_proc_init(void)
} }
out_free_percpu: out_free_percpu:
percpu_counter_destroy(&sctp_sockets_allocated); percpu_counter_destroy(&sctp_sockets_allocated);
out_nomem:
return -ENOMEM;
#else #else
return 0; return 0;
#endif /* CONFIG_PROC_FS */ #endif /* CONFIG_PROC_FS */
out_nomem:
return -ENOMEM;
} }
/* Clean up the proc fs entry for the SCTP protocol. /* Clean up the proc fs entry for the SCTP protocol.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment