diff options
| -rw-r--r-- | fs/nfsd/nfs4callback.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index c74e4538d0eb..9b38dab1c21b 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c | |||
| @@ -913,9 +913,9 @@ static int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *c | |||
| 913 | return PTR_ERR(client); | 913 | return PTR_ERR(client); |
| 914 | } | 914 | } |
| 915 | cred = get_backchannel_cred(clp, client, ses); | 915 | cred = get_backchannel_cred(clp, client, ses); |
| 916 | if (IS_ERR(cred)) { | 916 | if (!cred) { |
| 917 | rpc_shutdown_client(client); | 917 | rpc_shutdown_client(client); |
| 918 | return PTR_ERR(cred); | 918 | return -ENOMEM; |
| 919 | } | 919 | } |
| 920 | clp->cl_cb_client = client; | 920 | clp->cl_cb_client = client; |
| 921 | clp->cl_cb_cred = cred; | 921 | clp->cl_cb_cred = cred; |
