提交 6496ac0b 编写于 作者: C Claudiu Beznea 提交者: Zheng Zengkai

hwrng: atmel - disable trng on failure path

stable inclusion
from stable-v5.10.110
commit a4067ccb97e5eb7cf7da5132139d7678ab97cde0
bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a4067ccb97e5eb7cf7da5132139d7678ab97cde0

--------------------------------

[ Upstream commit a223ea9f ]

Call atmel_trng_disable() on failure path of probe.

Fixes: a1fa98d8 ("hwrng: atmel - disable TRNG during suspend")
Signed-off-by: NClaudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYu Liao <liaoyu15@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 fdb59dd0
......@@ -114,6 +114,7 @@ static int atmel_trng_probe(struct platform_device *pdev)
err_register:
clk_disable_unprepare(trng->clk);
atmel_trng_disable(trng);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册