diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2020-12-19 08:52:07 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-01-02 22:41:37 +0100 |
commit | c4ff41b93d1f10d1b8be258c31a0436c5769fc00 (patch) | |
tree | c68dfb2d9fefacfd7c7265b229c47ee075170c6c /crypto | |
parent | hwrng: iproc-rng200 - Move enable/disable in separate function (diff) | |
download | linux-c4ff41b93d1f10d1b8be258c31a0436c5769fc00.tar.xz linux-c4ff41b93d1f10d1b8be258c31a0436c5769fc00.zip |
hwrng: ingenic - Fix a resource leak in an error handling path
In case of error, we should call 'clk_disable_unprepare()' to undo a
previous 'clk_prepare_enable()' call, as already done in the remove
function.
Fixes: 406346d22278 ("hwrng: ingenic - Add hardware TRNG for Ingenic X1830")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Tested-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions