diff options
| author | Coia Prant <coiaprant@gmail.com> | 2026-09-20 01:20:21 +0800 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-09-22 15:39:06 +0200 |
| commit | 9892d71cf0ce3ff3d4fed2d9a3968fd4feb1c918 (patch) | |
| tree | e07fc013a0a75b065e64dd87ec4bb4546ae731bf /tools/perf/scripts/python | |
| parent | a87529034b9c3c3f3bb71c33e2d6d94658e06383 (diff) | |
| download | linux-9892d71cf0ce3ff3d4fed2d9a3968fd4feb1c918.tar.gz linux-9892d71cf0ce3ff3d4fed2d9a3968fd4feb1c918.zip | |
net: pcs: xpcs: fix clock reference leak on xpcs_init_clks failure
xpcs_init_clks() takes references with clk_bulk_get_optional() and then
enables them with clk_bulk_prepare_enable(). If the enable step fails,
the function returns without dropping the references.
xpcs_create() handles the failure through out_free_data, which calls
xpcs_free_data() but never xpcs_clear_clks(), so the clk references are
leaked.
Add the missing clk_bulk_put() on the enable failure path. The
prepare/enable side is already rolled back by
clk_bulk_prepare_enable() itself.
Fixes: f6bb3e9d98c2 ("net: pcs: xpcs: Add Synopsys DW xPCS platform device driver")
Signed-off-by: Coia Prant <coiaprant@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260919172021.2336748-1-coiaprant@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
