Skip to content

Commit

Permalink
Fix a referral error Oops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
andros@citi.umich.edu authored and Trond Myklebust committed Sep 23, 2006
1 parent 058ad9c commit 297de4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/nfs/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,8 @@ struct nfs_server *nfs4_create_referral_server(struct nfs_clone_mount *data,
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);
Expand Down

0 comments on commit 297de4f

Please sign in to comment.