aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfsd/nfs4callback.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index 5dcd38e5f138..8d55f5047503 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -389,12 +389,10 @@ static int do_probe_callback(void *data)
389 .rpc_argp = clp, 389 .rpc_argp = clp,
390 }; 390 };
391 struct rpc_clnt *client; 391 struct rpc_clnt *client;
392 int status; 392 int status = -EINVAL;
393 393
394 if (!clp->cl_principal && (clp->cl_flavor >= RPC_AUTH_GSS_KRB5)) { 394 if (!clp->cl_principal && (clp->cl_flavor >= RPC_AUTH_GSS_KRB5))
395 status = nfserr_cb_path_down;
396 goto out_err; 395 goto out_err;
397 }
398 396
399 /* Initialize address */ 397 /* Initialize address */
400 memset(&addr, 0, sizeof(addr)); 398 memset(&addr, 0, sizeof(addr));
@@ -405,8 +403,9 @@ static int do_probe_callback(void *data)
405 /* Create RPC client */ 403 /* Create RPC client */
406 client = rpc_create(&args); 404 client = rpc_create(&args);
407 if (IS_ERR(client)) { 405 if (IS_ERR(client)) {
408 dprintk("NFSD: couldn't create callback client\n");
409 status = PTR_ERR(client); 406 status = PTR_ERR(client);
407 dprintk("NFSD: couldn't create callback client: %d\n",
408 status);
410 goto out_err; 409 goto out_err;
411 } 410 }
412 411
@@ -422,10 +421,10 @@ static int do_probe_callback(void *data)
422out_release_client: 421out_release_client:
423 rpc_shutdown_client(client); 422 rpc_shutdown_client(client);
424out_err: 423out_err:
425 dprintk("NFSD: warning: no callback path to client %.*s\n", 424 dprintk("NFSD: warning: no callback path to client %.*s: error %d\n",
426 (int)clp->cl_name.len, clp->cl_name.data); 425 (int)clp->cl_name.len, clp->cl_name.data, status);
427 put_nfs4_client(clp); 426 put_nfs4_client(clp);
428 return status; 427 return 0;
429} 428}
430 429
431/* 430/*