From 07ff5efe3faa30bd1c72743022762c262c5e84c2 Mon Sep 17 00:00:00 2001 From: David Howells Date: Fri, 6 Aug 2010 17:26:48 +0100 Subject: [PATCH] --- yaml --- r: 206421 b: refs/heads/master c: df44f9f4f9b5d362b5a2d1c8444fe7e6d4c42653 h: refs/heads/master i: 206419: 2092f6a710601f1d324251073377bc3b0d6a798f v: v3 --- [refs] | 2 +- trunk/fs/afs/main.c | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) 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);