

Fix an oops when the referral server is not responding.
Check the error return from nfs4_set_client() in nfs4_create_referral_server.

Signed-off-by: Andy Adamson <andros@citi.umich.edu>
---


diff -puN fs/nfs/client.c~referral-error-opps fs/nfs/client.c
--- linux-2.6.18-rc5/fs/nfs/client.c~referral-error-opps	2006-08-29 12:02:04.000000000 -0400
+++ linux-2.6.18-rc5-andros/fs/nfs/client.c	2006-08-29 12:16:42.000000000 -0400
@@ -1060,6 +1060,8 @@ struct nfs_server *nfs4_create_referral_
 			parent_server->client->cl_xprt->prot,
 			parent_client->retrans_timeo,
 			parent_client->retrans_count);
+	if (error < 0)
+		goto error;
 
 	/* Initialise the client representation from the parent server */
 	nfs_server_copy_userdata(server, parent_server);
_
