Skip to content

Commit

Permalink
Orangefs: adjust unwind on module init failure.
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
  • Loading branch information
hubcapsc committed Mar 17, 2016
1 parent 2180c52 commit 1a0ce16
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fs/orangefs/orangefs-mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,10 @@ static int __init orangefs_init(void)
* and passes along the needed info. The argument signifies
* which time orangefs_prepare_debugfs_help_string is being
* called.
*
*/
ret = orangefs_prepare_debugfs_help_string(1);
if (ret)
goto prepare_helpstring_failed;
goto cleanup_key_table;

ret = orangefs_debugfs_init();
if (ret)
Expand All @@ -207,7 +206,6 @@ static int __init orangefs_init(void)
}

orangefs_sysfs_exit();
fsid_key_table_finalize();

sysfs_init_failed:

Expand All @@ -216,7 +214,8 @@ static int __init orangefs_init(void)
debugfs_init_failed:
orangefs_debugfs_cleanup();

prepare_helpstring_failed:
cleanup_key_table:
fsid_key_table_finalize();

cleanup_progress_table:
kfree(htable_ops_in_progress);
Expand Down

0 comments on commit 1a0ce16

Please sign in to comment.