Skip to content
Commit 625ff6f4 authored by Zheng Yongjun's avatar Zheng Yongjun Committed by Greg Kroah-Hartman
Browse files

crypto: stm32 - fix reference leak in stm32_crc_remove



[ Upstream commit e9a36fee ]

pm_runtime_get_sync() will increment pm usage counter even it
failed. Forgetting to call pm_runtime_put_noidle will result
in reference leak in stm32_crc_remove, so we should fix it.

Signed-off-by: default avatarZheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0a482fc4
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