diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-08-19 22:48:08 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-10-29 22:04:35 +0200 |
commit | 7f98960c046ee1136e7096aee168eda03aef8a5d (patch) | |
tree | d86be86bbf1e6857060cc65d13460e02b301e2a0 /certs/system_certificates.S | |
parent | i2c: qup: move to use request_irq by IRQF_NO_AUTOEN flag (diff) | |
download | linux-7f98960c046ee1136e7096aee168eda03aef8a5d.tar.xz linux-7f98960c046ee1136e7096aee168eda03aef8a5d.zip |
i2c: xlr: Fix a resource leak in the error handling path of 'xlr_i2c_probe()'
A successful 'clk_prepare()' call should be balanced by a corresponding
'clk_unprepare()' call in the error handling path of the probe, as already
done in the remove function.
More specifically, 'clk_prepare_enable()' is used, but 'clk_disable()' is
also already called. So just the unprepare step has still to be done.
Update the error handling path accordingly.
Fixes: 75d31c2372e4 ("i2c: xlr: add support for Sigma Designs controller variant")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'certs/system_certificates.S')
0 files changed, 0 insertions, 0 deletions