diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-15 05:56:31 +0000 |
|---|---|---|
| committer | Abel Vesa <abel.vesa@oss.qualcomm.com> | 2026-10-09 10:55:51 +0300 |
| commit | 52d4d1b26a5bc64de95099d0a3dd8b90dba1f3a3 (patch) | |
| tree | f2ac332d497f97362197be0bbe6148491ec4fdad /include/linux/debugobjects.h | |
| parent | 8e177ca735761a1f03e1dedffd7ab00d6d0540ae (diff) | |
clk: imx: Fix clock reference leak in imx_obtain_fixed_clock_hw()
imx_obtain_fixed_clock_hw() obtains the clock through
imx_obtain_fixed_clock_from_dt(), which creates a consumer reference
via of_clk_get_from_provider(). The reference is discarded right after
__clk_get_hw() returns the hardware pointer, leaking it.
Keep the imx_clk_fixed() fallback unchanged and drop the DT-obtained
consumer reference with clk_put() once the hardware pointer has been
extracted.
Fixes: a4a4069f4523 ("clk: imx: Add imx_obtain_fixed_clock clk_hw based variant")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20260915055631.1730231-1-vulab@iscas.ac.cn
Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
