diff options
Diffstat (limited to 'net/sunrpc/auth.c')
-rw-r--r-- | net/sunrpc/auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index 584f24311a80..1686dc74c6a9 100644 --- a/net/sunrpc/auth.c +++ b/net/sunrpc/auth.c | |||
@@ -93,7 +93,7 @@ rpcauth_create(rpc_authflavor_t pseudoflavor, struct rpc_clnt *clnt) | |||
93 | if (IS_ERR(auth)) | 93 | if (IS_ERR(auth)) |
94 | return auth; | 94 | return auth; |
95 | if (clnt->cl_auth) | 95 | if (clnt->cl_auth) |
96 | rpcauth_destroy(clnt->cl_auth); | 96 | rpcauth_release(clnt->cl_auth); |
97 | clnt->cl_auth = auth; | 97 | clnt->cl_auth = auth; |
98 | 98 | ||
99 | out: | 99 | out: |
@@ -101,7 +101,7 @@ out: | |||
101 | } | 101 | } |
102 | 102 | ||
103 | void | 103 | void |
104 | rpcauth_destroy(struct rpc_auth *auth) | 104 | rpcauth_release(struct rpc_auth *auth) |
105 | { | 105 | { |
106 | if (!atomic_dec_and_test(&auth->au_count)) | 106 | if (!atomic_dec_and_test(&auth->au_count)) |
107 | return; | 107 | return; |