Commit 606576a9 authored by Trond Myklebust's avatar Trond Myklebust Committed by Greg Kroah-Hartman

SUNRPC: Fix a bogus get/put in generic_key_to_expire()

[ Upstream commit e3d5e573a54dabdc0f9f3cb039d799323372b251 ]
Signed-off-by: default avatarTrond Myklebust <>
Signed-off-by: default avatarSasha Levin <>
parent 6d39dd9c
......@@ -272,13 +272,7 @@ static bool generic_key_to_expire(struct rpc_cred *cred)
struct auth_cred *acred = &container_of(cred, struct generic_cred,
bool ret;
ret = test_bit(RPC_CRED_KEY_EXPIRE_SOON, &acred->ac_flags);
return ret;
return test_bit(RPC_CRED_KEY_EXPIRE_SOON, &acred->ac_flags);
static const struct rpc_credops generic_credops = {
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