diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/auth_gss/auth_gss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c index d34f6dfc7516..55948cd5ea55 100644 --- a/net/sunrpc/auth_gss/auth_gss.c +++ b/net/sunrpc/auth_gss/auth_gss.c | |||
@@ -710,7 +710,7 @@ gss_destroying_context(struct rpc_cred *cred) | |||
710 | struct rpc_task *task; | 710 | struct rpc_task *task; |
711 | 711 | ||
712 | if (gss_cred->gc_ctx == NULL || | 712 | if (gss_cred->gc_ctx == NULL || |
713 | gss_cred->gc_ctx->gc_proc == RPC_GSS_PROC_DESTROY) | 713 | test_and_clear_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags) == 0) |
714 | return 0; | 714 | return 0; |
715 | 715 | ||
716 | gss_cred->gc_ctx->gc_proc = RPC_GSS_PROC_DESTROY; | 716 | gss_cred->gc_ctx->gc_proc = RPC_GSS_PROC_DESTROY; |
@@ -720,7 +720,7 @@ gss_destroying_context(struct rpc_cred *cred) | |||
720 | * by the RPC call or by the put_rpccred() below */ | 720 | * by the RPC call or by the put_rpccred() below */ |
721 | get_rpccred(cred); | 721 | get_rpccred(cred); |
722 | 722 | ||
723 | task = rpc_call_null(gss_auth->client, cred, RPC_TASK_ASYNC); | 723 | task = rpc_call_null(gss_auth->client, cred, RPC_TASK_ASYNC|RPC_TASK_SOFT); |
724 | if (!IS_ERR(task)) | 724 | if (!IS_ERR(task)) |
725 | rpc_put_task(task); | 725 | rpc_put_task(task); |
726 | 726 | ||