Skip to content
Commit 5f707eb4 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

SUNRPC: Fix potential race in put_rpccred()



We have to be careful when we try to unhash the credential in
put_rpccred(), because we're not holding the credcache lock, so the call to
rpcauth_unhash_cred() may fail if someone else has looked the cred up, and
obtained a reference to it.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent eac0d18d
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