aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4callback.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/nfs4callback.c')
-rw-r--r--fs/nfsd/nfs4callback.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index c70de9c2af74..1a55dfcb74bc 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -405,7 +405,8 @@ nfsd4_probe_callback(struct nfs4_client *clp)
405 timeparms.to_exponential = 1; 405 timeparms.to_exponential = 1;
406 406
407 /* Create RPC transport */ 407 /* Create RPC transport */
408 if (!(xprt = xprt_create_proto(IPPROTO_TCP, &addr, &timeparms))) { 408 xprt = xprt_create_proto(IPPROTO_TCP, &addr, &timeparms);
409 if (IS_ERR(xprt)) {
409 dprintk("NFSD: couldn't create callback transport!\n"); 410 dprintk("NFSD: couldn't create callback transport!\n");
410 goto out_err; 411 goto out_err;
411 } 412 }
@@ -426,7 +427,8 @@ nfsd4_probe_callback(struct nfs4_client *clp)
426 * XXX AUTH_UNIX only - need AUTH_GSS.... 427 * XXX AUTH_UNIX only - need AUTH_GSS....
427 */ 428 */
428 sprintf(hostname, "%u.%u.%u.%u", NIPQUAD(addr.sin_addr.s_addr)); 429 sprintf(hostname, "%u.%u.%u.%u", NIPQUAD(addr.sin_addr.s_addr));
429 if (!(clnt = rpc_create_client(xprt, hostname, program, 1, RPC_AUTH_UNIX))) { 430 clnt = rpc_create_client(xprt, hostname, program, 1, RPC_AUTH_UNIX);
431 if (IS_ERR(clnt)) {
430 dprintk("NFSD: couldn't create callback client\n"); 432 dprintk("NFSD: couldn't create callback client\n");
431 goto out_xprt; 433 goto out_xprt;
432 } 434 }