diff --git a/[refs] b/[refs] index c39f85cfbd06..b8ffca162f6f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5df6b8e65ad0f2eaee202ff002ac00d1ac605315 +refs/heads/master: df44f9f4f9b5d362b5a2d1c8444fe7e6d4c42653 diff --git a/trunk/fs/afs/main.c b/trunk/fs/afs/main.c index 66d54d348c55..cfd1cbe25b22 100644 --- a/trunk/fs/afs/main.c +++ b/trunk/fs/afs/main.c @@ -111,6 +111,8 @@ static int __init afs_init(void) /* initialise the callback update process */ ret = afs_callback_update_init(); + if (ret < 0) + goto error_callback_update_init; /* create the RxRPC transport */ ret = afs_open_socket(); @@ -127,15 +129,16 @@ static int __init afs_init(void) error_fs: afs_close_socket(); error_open_socket: + afs_callback_update_kill(); +error_callback_update_init: + afs_vlocation_purge(); error_vl_update_init: + afs_cell_purge(); error_cell_init: #ifdef CONFIG_AFS_FSCACHE fscache_unregister_netfs(&afs_cache_netfs); error_cache: #endif - afs_callback_update_kill(); - afs_vlocation_purge(); - afs_cell_purge(); afs_proc_cleanup(); rcu_barrier(); printk(KERN_ERR "kAFS: failed to register: %d\n", ret);