diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-16 07:06:31 +0000 |
|---|---|---|
| committer | Andi Shyti <andi.shyti@kernel.org> | 2026-10-13 00:05:33 +0200 |
| commit | aaabefc79b0ff0018e8e3832169bbe359d0551fc (patch) | |
| tree | a1f5d151f84baa0686b1b66030283973d8191a6b /tools/lib/python | |
| parent | 24a19b953e2a3d0ea5a8c4951a0ab8f32720c907 (diff) | |
| download | linux-next-aaabefc79b0ff0018e8e3832169bbe359d0551fc.tar.gz linux-next-aaabefc79b0ff0018e8e3832169bbe359d0551fc.zip | |
i2c: viai2c-wmt: Fix clock leak in wmt_i2c_probe()
In wmt_i2c_probe(), i2c->clk is acquired using of_clk_get(). If any
subsequent operation fails or when the module is unloaded, the clock
reference count is never decremented via clk_put(), leading to a
resource leak.
Switch to devm_clk_get() so that the clock is automatically managed
and released.
Fixes: 560746eb79d3 ("i2c: vt8500: Add support for I2C bus on Wondermedia SoCs")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://patch.msgid.link/20260916070631.1965713-1-vulab@iscas.ac.cn
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
