Commit cc8995c1 authored by Sridhar Samudrala's avatar Sridhar Samudrala

[SCTP] Propagate error from sctp_proc_init. (Olaf Kirch)

parent febb7e5d
...@@ -1004,7 +1004,9 @@ __init int sctp_init(void) ...@@ -1004,7 +1004,9 @@ __init int sctp_init(void)
goto err_init_mibs; goto err_init_mibs;
/* Initialize proc fs directory. */ /* Initialize proc fs directory. */
sctp_proc_init(); status = sctp_proc_init();
if (status)
goto err_init_proc;
/* Initialize object count debugging. */ /* Initialize object count debugging. */
sctp_dbg_objcnt_init(); sctp_dbg_objcnt_init();
...@@ -1174,6 +1176,7 @@ __init int sctp_init(void) ...@@ -1174,6 +1176,7 @@ __init int sctp_init(void)
sizeof(struct sctp_hashbucket))); sizeof(struct sctp_hashbucket)));
err_ahash_alloc: err_ahash_alloc:
sctp_dbg_objcnt_exit(); sctp_dbg_objcnt_exit();
err_init_proc:
sctp_proc_exit(); sctp_proc_exit();
cleanup_sctp_mibs(); cleanup_sctp_mibs();
err_init_mibs: err_init_mibs:
......
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