diff options
author | Aboorva Devarajan <aboorvad@linux.ibm.com> | 2025-02-05 21:13:47 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-02-05 23:02:39 +0300 |
commit | 0813fd2e14ca6ecd4e6ba005a9766f08e26020d7 (patch) | |
tree | 4f3280f8cb9d03cb057a5b56f2e8689f720d3428 /tools/perf/scripts/python/libxed.py | |
parent | 90508a1bb8f00618fa12cb2ad2276bc783656fc5 (diff) | |
download | linux-0813fd2e14ca6ecd4e6ba005a9766f08e26020d7.tar.xz |
cpufreq: prevent NULL dereference in cpufreq_online()
Ensure cpufreq_driver->set_boost is non-NULL before using it in
cpufreq_online() to prevent a potential NULL pointer dereference.
Reported-by: Gautam Menghani <gautam@linux.ibm.com>
Closes: https://lore.kernel.org/all/c9e56c5f54cc33338762c94e9bed7b5a0d5de812.camel@linux.ibm.com/
Fixes: dd016f379ebc ("cpufreq: Introduce a more generic way to set default per-policy boost flag")
Suggested-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Aboorva Devarajan <aboorvad@linux.ibm.com>
Link: https://patch.msgid.link/20250205181347.2079272-1-aboorvad@linux.ibm.com
[ rjw: Minor edits in the subject and changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions