mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-16 20:57:41 +07:00
SUNRPC: Fix a bogus get/put in generic_key_to_expire()
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
a652a4bc21
commit
e3d5e573a5
@ -281,13 +281,7 @@ static bool generic_key_to_expire(struct rpc_cred *cred)
|
|||||||
{
|
{
|
||||||
struct auth_cred *acred = &container_of(cred, struct generic_cred,
|
struct auth_cred *acred = &container_of(cred, struct generic_cred,
|
||||||
gc_base)->acred;
|
gc_base)->acred;
|
||||||
bool ret;
|
return test_bit(RPC_CRED_KEY_EXPIRE_SOON, &acred->ac_flags);
|
||||||
|
|
||||||
get_rpccred(cred);
|
|
||||||
ret = test_bit(RPC_CRED_KEY_EXPIRE_SOON, &acred->ac_flags);
|
|
||||||
put_rpccred(cred);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct rpc_credops generic_credops = {
|
static const struct rpc_credops generic_credops = {
|
||||||
|
Loading…
Reference in New Issue
Block a user