]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sunrpc/auth.c
SUNRPC: Fix potential race in put_rpccred()
[linux-2.6-omap-h63xx.git] / net / sunrpc / auth.c
index a045a1253d49652b17076dc87fbbfd447bf63a6c..cb216b2df666dc260b79a0d0f2259ac123d5fabf 100644 (file)
@@ -455,7 +455,7 @@ need_lock:
        }
        if (test_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags) == 0)
                rpcauth_unhash_cred(cred);
-       else if (test_bit(RPCAUTH_CRED_HASHED, &cred->cr_flags) != 0) {
+       if (test_bit(RPCAUTH_CRED_HASHED, &cred->cr_flags) != 0) {
                cred->cr_expire = jiffies;
                list_add_tail(&cred->cr_lru, &cred_unused);
                number_cred_unused++;