diff options
author | andros@citi.umich.edu <andros@citi.umich.edu> | 2006-08-29 12:19:41 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-09-22 23:24:56 -0400 |
commit | 297de4f65698ee1e1c75e27d57933b5fa8227e72 (patch) | |
tree | b04698edae97e64b3ad5290b33a9233f97f48c77 | |
parent | 058ad9cbf14b3c7480d01b20280cb4d5858f7a50 (diff) |
Fix a referral error Oops
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>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r-- | fs/nfs/client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c index a4aa47913a5c..110f80e7bd4c 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c | |||
@@ -1059,6 +1059,8 @@ struct nfs_server *nfs4_create_referral_server(struct nfs_clone_mount *data, | |||
1059 | parent_server->client->cl_xprt->prot, | 1059 | parent_server->client->cl_xprt->prot, |
1060 | parent_client->retrans_timeo, | 1060 | parent_client->retrans_timeo, |
1061 | parent_client->retrans_count); | 1061 | parent_client->retrans_count); |
1062 | if (error < 0) | ||
1063 | goto error; | ||
1062 | 1064 | ||
1063 | /* Initialise the client representation from the parent server */ | 1065 | /* Initialise the client representation from the parent server */ |
1064 | nfs_server_copy_userdata(server, parent_server); | 1066 | nfs_server_copy_userdata(server, parent_server); |