summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2026-09-17 11:01:35 +0000
committerPaolo Abeni <pabeni@redhat.com>2026-09-22 12:31:26 +0200
commita644f09b2090ad22a13fbcf9d141084f573108ef (patch)
treed1c9e625d897da547c88ea5febd29660b29cd407 /tools/perf/scripts/python/stackcollapse.py
parenta92e1a412c53dc0d9ad639e7abf8b3fc70a5b6ad (diff)
downloadlinux-a644f09b2090ad22a13fbcf9d141084f573108ef.tar.gz
linux-a644f09b2090ad22a13fbcf9d141084f573108ef.zip
fsl/fman: Fix clk reference leak in read_dts_node()
of_clk_get() returns a clock with its reference count incremented, but read_dts_node() only uses it to read the rate and never calls clk_put(). The clock is not stored anywhere, so the reference cannot be released later either. Release the clock once its rate has been read, which also covers the error path taken when the rate is zero. Fixes: 414fd46e7762 ("fsl/fman: Add FMan support") Cc: stable@vger.kernel.org Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20260917110135.2148068-1-vulab@iscas.ac.cn Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions