aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLifeng Zheng <zhenglifeng1@huawei.com>2025-07-09 18:41:43 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-07-14 19:38:10 +0200
commitd1378d1d7edb3a4c4935a44fe834ae135be03564 (patch)
tree40a2df3e4feb04c4f2d8a9a00697c7d2dea342ac /tools/perf/scripts/python
parentcpufreq: Initialize cpufreq-based frequency-invariance later (diff)
downloadwireguard-linux-d1378d1d7edb3a4c4935a44fe834ae135be03564.tar.xz
wireguard-linux-d1378d1d7edb3a4c4935a44fe834ae135be03564.zip
cpufreq: Init policy->rwsem before it may be possibly used
In cpufreq_policy_put_kobj(), policy->rwsem is used. But in cpufreq_policy_alloc(), if freq_qos_add_notifier() returns an error, error path via err_kobj_remove or err_min_qos_notifier will be reached and cpufreq_policy_put_kobj() will be called before policy->rwsem is initialized. Thus, the calling of init_rwsem() should be moved to where before these two error paths can be reached. Fixes: 67d874c3b2c6 ("cpufreq: Register notifiers with the PM QoS framework") Signed-off-by: Lifeng Zheng <zhenglifeng1@huawei.com> Link: https://patch.msgid.link/20250709104145.2348017-3-zhenglifeng1@huawei.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions