Commit 677805a95934eb37bcc2482766d6160e6d216d98
Committed by
Greg Kroah-Hartman
1 parent
e1f0f55f27
Exists in
smarc_8mm_imx_4.14.98_2.0.0_ga
and in
4 other branches
SUNRPC: Fix a bogus get/put in generic_key_to_expire()
[ Upstream commit e3d5e573a54dabdc0f9f3cb039d799323372b251 ] Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Showing 1 changed file with 1 additions and 7 deletions Side-by-side Diff
net/sunrpc/auth_generic.c
... | ... | @@ -281,13 +281,7 @@ |
281 | 281 | { |
282 | 282 | struct auth_cred *acred = &container_of(cred, struct generic_cred, |
283 | 283 | gc_base)->acred; |
284 | - bool ret; | |
285 | - | |
286 | - get_rpccred(cred); | |
287 | - ret = test_bit(RPC_CRED_KEY_EXPIRE_SOON, &acred->ac_flags); | |
288 | - put_rpccred(cred); | |
289 | - | |
290 | - return ret; | |
284 | + return test_bit(RPC_CRED_KEY_EXPIRE_SOON, &acred->ac_flags); | |
291 | 285 | } |
292 | 286 | |
293 | 287 | static const struct rpc_credops generic_credops = { |