diff options
| author | 赵宇 <1466528493@qq.com> | 2026-09-10 13:07:07 +0800 |
|---|---|---|
| committer | Max Filippov <jcmvbkbc@gmail.com> | 2026-09-10 03:40:17 -0700 |
| commit | 28722ed2527aa63ac1454013defe718c56032886 (patch) | |
| tree | b02ef2329e771660f3f7d89ed0d5a1e52aa21821 /fs/9p/acl.c | |
| parent | 615612acc7853ce84f1ea47504d8f8d5f2eed3b0 (diff) | |
| download | linux-next-28722ed2527aa63ac1454013defe718c56032886.tar.gz linux-next-28722ed2527aa63ac1454013defe718c56032886.zip | |
xtensa: time: Fix clk reference leak in calibrate_ccount()
In calibrate_ccount(), of_clk_get() acquires a reference to the CPU
clock, but clk_put() is never called to release it. The clock
reference is used only to read the frequency via clk_get_rate(),
then the function returns immediately, leaking the reference.
Fix this by calling clk_put(clk) before returning.
Signed-off-by: 赵宇 <1466528493@qq.com>
Message-ID: <tencent_7AF43562265F45B58A25576CAFCE66967708@qq.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'fs/9p/acl.c')
0 files changed, 0 insertions, 0 deletions
