Commit 30fa4fec authored by Trond Myklebust's avatar Trond Myklebust Committed by Linus Torvalds

[PATCH] RPC: remove bogus atomic_dec in auth_null

The atomic_dec in nul_destroy() is harmless, but can trigger an underflow
error if the atomic_dec_and_test() debugging is turned on.

Problem diagnosed by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent dfcba092
...@@ -31,7 +31,6 @@ nul_create(struct rpc_clnt *clnt, rpc_authflavor_t flavor) ...@@ -31,7 +31,6 @@ nul_create(struct rpc_clnt *clnt, rpc_authflavor_t flavor)
static void static void
nul_destroy(struct rpc_auth *auth) nul_destroy(struct rpc_auth *auth)
{ {
atomic_dec(&null_auth.au_count);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment