summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2026-09-15 05:55:15 +0000
committerAbel Vesa <abel.vesa@oss.qualcomm.com>2026-10-09 10:55:13 +0300
commit8e177ca735761a1f03e1dedffd7ab00d6d0540ae (patch)
treec55f29ca4cb75504b088c365a9cfea9f51225c02 /include/linux
parentf85b551c519ee8f92be601ccf4f7d440582ac476 (diff)
clk: imx: Fix clock reference leak in imx_get_clk_hw_by_name()
imx_get_clk_hw_by_name() obtains a consumer clock with of_clk_get_by_name(), extracts the hardware pointer with __clk_get_hw() and returns it without ever calling clk_put(), leaking the consumer reference on both return paths. Extract the hardware pointer first and drop the clock reference with clk_put() before returning. Fixes: 3b315214e091 ("clk: imx: implement new clk_hw based APIs") Cc: stable@vger.kernel.org Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> Link: https://patch.msgid.link/20260915055515.1730145-1-vulab@iscas.ac.cn Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions