summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorCoia Prant <coiaprant@gmail.com>2026-09-23 20:37:13 +0800
committerJakub Kicinski <kuba@kernel.org>2026-09-24 10:47:24 -0700
commit8db67bb6a1fffa4df68fbbc22e39943aeeff9178 (patch)
treea2ce3f2b519033b14058d38935960be67ffe4a1e /tools/perf/scripts/python/export-to-postgresql.py
parent56d82862a0a243ac14ba11b6d7b57ddc2d064b95 (diff)
downloadlinux-next-8db67bb6a1fffa4df68fbbc22e39943aeeff9178.tar.gz
linux-next-8db67bb6a1fffa4df68fbbc22e39943aeeff9178.zip
net: ethernet: stmmac: dwmac-rk: fix bulk clock leak when the PHY clock fails
gmac_clk_enable() enables the bulk clocks first and then the optional PHY clock. If clk_prepare_enable() on the PHY clock fails, the function returns without rolling back the bulk clocks, and bsp_priv->clk_enabled stays false, so the later gmac_clk_enable(bsp_priv, false) becomes a no-op and the bulk clock references are leaked. Add the missing clk_bulk_disable_unprepare() on that failure path. Fixes: ea449f7fa0bf ("net: ethernet: stmmac: dwmac-rk: rework optional clock handling") Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Reviewed-by: Heiko Stuebner <heiko@sntech.de> Acked-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com> Signed-off-by: Coia Prant <coiaprant@gmail.com> Link: https://patch.msgid.link/20260923123713.3137146-1-coiaprant@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions