[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201127094609.121614-1-miaoqinglang@huawei.com>
Date: Fri, 27 Nov 2020 17:46:07 +0800
From: Qinglang Miao <miaoqinglang@...wei.com>
To: Herbert Xu <herbert@...dor.apana.org.au>,
"David S. Miller" <davem@...emloft.net>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
"Alexandre Torgue" <alexandre.torgue@...com>
CC: <linux-crypto@...r.kernel.org>,
<linux-stm32@...md-mailman.stormreply.com>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>,
Qinglang Miao <miaoqinglang@...wei.com>
Subject: [PATCH 0/2] crypto: stm32 - fix reference leak
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
Powered by blists - more mailing lists