summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorYao Zi <me@ziyao.cc>2026-11-05 00:12:56 +0000
committerUlf Hansson <ulfh@kernel.org>2026-11-14 11:54:47 +0100
commitc671660ea0afeada9b6694a5a25a276bbb81e2dc (patch)
treeb0627b3ac1f9e71f7e32968590e329fdc6dc08ca /tools/lib/python
parent8b2e3ed31c3de15e8049f533956f6588b93c6a3a (diff)
pmdomain: rockchip: Only put clocks that have been successfully obtained
Since pd->num_clks represents the number of clocks described in devicetree, invoking clk_bulk_put() with it will put invalid pointers when some clocks cannot be obtained, triggering a warning in CCF like, WARNING: drivers/clk/clk.c:4844 at __clk_put+0xf8/0x12c, CPU#0: swapper/0/1 Call trace: __clk_put+0xf8/0x12c (P) clk_put+0x10/0x20 clk_bulk_put+0x38/0x60 rockchip_pm_add_one_domain+0x2b0/0x468 rockchip_pm_domain_probe+0xd4/0x2f0 platform_probe+0x80/0xac ... Invoke clk_bulk_put() with the counter used in the loop of obtaining clocks instead. Fixes: d8b384777066 ("pmdomain: rockchip: fix clock leak on domain probe failure") Cc: stable@vger.kernel.org Signed-off-by: Yao Zi <me@ziyao.cc> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions