diff options
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 2b8e47e5e533..ed92c7d36378 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -1046,21 +1046,23 @@ init_cifs(void) | |||
1046 | #ifdef CONFIG_CIFS_ACL | 1046 | #ifdef CONFIG_CIFS_ACL |
1047 | rc = init_cifs_idmap(); | 1047 | rc = init_cifs_idmap(); |
1048 | if (rc) | 1048 | if (rc) |
1049 | goto out_destroy_request_bufs; | 1049 | goto out_register_key_type; |
1050 | #endif /* CONFIG_CIFS_ACL */ | 1050 | #endif /* CONFIG_CIFS_ACL */ |
1051 | 1051 | ||
1052 | rc = register_filesystem(&cifs_fs_type); | 1052 | rc = register_filesystem(&cifs_fs_type); |
1053 | if (rc) | 1053 | if (rc) |
1054 | goto out_destroy_request_bufs; | 1054 | goto out_init_cifs_idmap; |
1055 | 1055 | ||
1056 | return 0; | 1056 | return 0; |
1057 | 1057 | ||
1058 | out_destroy_request_bufs: | 1058 | out_init_cifs_idmap: |
1059 | #ifdef CONFIG_CIFS_ACL | 1059 | #ifdef CONFIG_CIFS_ACL |
1060 | exit_cifs_idmap(); | 1060 | exit_cifs_idmap(); |
1061 | out_register_key_type: | ||
1061 | #endif | 1062 | #endif |
1062 | #ifdef CONFIG_CIFS_UPCALL | 1063 | #ifdef CONFIG_CIFS_UPCALL |
1063 | unregister_key_type(&cifs_spnego_key_type); | 1064 | unregister_key_type(&cifs_spnego_key_type); |
1065 | out_destroy_request_bufs: | ||
1064 | #endif | 1066 | #endif |
1065 | cifs_destroy_request_bufs(); | 1067 | cifs_destroy_request_bufs(); |
1066 | out_destroy_mids: | 1068 | out_destroy_mids: |