diff options
-rw-r--r-- | fs/ext4/super.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 4898cb1ff606..86b05486dc63 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -4810,13 +4810,17 @@ static int __init ext4_init_fs(void) | |||
4810 | return err; | 4810 | return err; |
4811 | err = ext4_init_system_zone(); | 4811 | err = ext4_init_system_zone(); |
4812 | if (err) | 4812 | if (err) |
4813 | goto out5; | 4813 | goto out7; |
4814 | ext4_kset = kset_create_and_add("ext4", NULL, fs_kobj); | 4814 | ext4_kset = kset_create_and_add("ext4", NULL, fs_kobj); |
4815 | if (!ext4_kset) | 4815 | if (!ext4_kset) |
4816 | goto out4; | 4816 | goto out6; |
4817 | ext4_proc_root = proc_mkdir("fs/ext4", NULL); | 4817 | ext4_proc_root = proc_mkdir("fs/ext4", NULL); |
4818 | if (!ext4_proc_root) | ||
4819 | goto out5; | ||
4818 | 4820 | ||
4819 | err = ext4_init_feat_adverts(); | 4821 | err = ext4_init_feat_adverts(); |
4822 | if (err) | ||
4823 | goto out4; | ||
4820 | 4824 | ||
4821 | err = ext4_init_mballoc(); | 4825 | err = ext4_init_mballoc(); |
4822 | if (err) | 4826 | if (err) |
@@ -4847,11 +4851,13 @@ out2: | |||
4847 | ext4_exit_mballoc(); | 4851 | ext4_exit_mballoc(); |
4848 | out3: | 4852 | out3: |
4849 | ext4_exit_feat_adverts(); | 4853 | ext4_exit_feat_adverts(); |
4854 | out4: | ||
4850 | remove_proc_entry("fs/ext4", NULL); | 4855 | remove_proc_entry("fs/ext4", NULL); |
4856 | out5: | ||
4851 | kset_unregister(ext4_kset); | 4857 | kset_unregister(ext4_kset); |
4852 | out4: | 4858 | out6: |
4853 | ext4_exit_system_zone(); | 4859 | ext4_exit_system_zone(); |
4854 | out5: | 4860 | out7: |
4855 | ext4_exit_pageio(); | 4861 | ext4_exit_pageio(); |
4856 | return err; | 4862 | return err; |
4857 | } | 4863 | } |