All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] crypto: stm32 - fix reference leak
@ 2020-11-27  9:46 ` Qinglang Miao
  0 siblings, 0 replies; 6+ messages in thread
From: Qinglang Miao @ 2020-11-27  9:46 UTC (permalink / raw)
  To: Herbert Xu, David S. Miller, Maxime Coquelin, Alexandre Torgue
  Cc: linux-crypto, linux-stm32, linux-arm-kernel, linux-kernel, Qinglang Miao

pm_runtime_get_sync will increment pm usage counter even it
failed. Forgetting to putting operation will result in a
reference leak here. 

Use pm_runtime_resume_and_get to fix it.

Qinglang Miao (2):
  crypto: stm32/cryp - fix reference leak in stm32_cryp_remove
  crypto: stm32/hash - fix reference leak in stm32_hash_remove

 drivers/crypto/stm32/stm32-cryp.c | 2 +-
 drivers/crypto/stm32/stm32-hash.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.23.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-11-27 10:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-27  9:46 [PATCH 0/2] crypto: stm32 - fix reference leak Qinglang Miao
2020-11-27  9:46 ` Qinglang Miao
2020-11-27  9:46 ` [PATCH 1/2] crypto: stm32/cryp - fix reference leak in stm32_cryp_remove Qinglang Miao
2020-11-27  9:46   ` Qinglang Miao
2020-11-27  9:46 ` [PATCH 2/2] crypto: stm32/hash - fix reference leak in stm32_hash_remove Qinglang Miao
2020-11-27  9:46   ` Qinglang Miao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.