diff options
-rw-r--r-- | fs/afs/main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/afs/main.c b/fs/afs/main.c index 66d54d348c55..cfd1cbe25b22 100644 --- a/fs/afs/main.c +++ b/fs/afs/main.c | |||
@@ -111,6 +111,8 @@ static int __init afs_init(void) | |||
111 | 111 | ||
112 | /* initialise the callback update process */ | 112 | /* initialise the callback update process */ |
113 | ret = afs_callback_update_init(); | 113 | ret = afs_callback_update_init(); |
114 | if (ret < 0) | ||
115 | goto error_callback_update_init; | ||
114 | 116 | ||
115 | /* create the RxRPC transport */ | 117 | /* create the RxRPC transport */ |
116 | ret = afs_open_socket(); | 118 | ret = afs_open_socket(); |
@@ -127,15 +129,16 @@ static int __init afs_init(void) | |||
127 | error_fs: | 129 | error_fs: |
128 | afs_close_socket(); | 130 | afs_close_socket(); |
129 | error_open_socket: | 131 | error_open_socket: |
132 | afs_callback_update_kill(); | ||
133 | error_callback_update_init: | ||
134 | afs_vlocation_purge(); | ||
130 | error_vl_update_init: | 135 | error_vl_update_init: |
136 | afs_cell_purge(); | ||
131 | error_cell_init: | 137 | error_cell_init: |
132 | #ifdef CONFIG_AFS_FSCACHE | 138 | #ifdef CONFIG_AFS_FSCACHE |
133 | fscache_unregister_netfs(&afs_cache_netfs); | 139 | fscache_unregister_netfs(&afs_cache_netfs); |
134 | error_cache: | 140 | error_cache: |
135 | #endif | 141 | #endif |
136 | afs_callback_update_kill(); | ||
137 | afs_vlocation_purge(); | ||
138 | afs_cell_purge(); | ||
139 | afs_proc_cleanup(); | 142 | afs_proc_cleanup(); |
140 | rcu_barrier(); | 143 | rcu_barrier(); |
141 | printk(KERN_ERR "kAFS: failed to register: %d\n", ret); | 144 | printk(KERN_ERR "kAFS: failed to register: %d\n", ret); |