Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 297de4f6 authored by Andy Adamson's avatar Andy Adamson Committed by Trond Myklebust
Browse files

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: default avatarAndy Adamson <andros@citi.umich.edu>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 058ad9cb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);