diff options
author | Henry Martin <bsdhenrymartin@gmail.com> | 2025-04-08 23:03:54 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-05-02 07:50:42 +0200 |
commit | 19e0eaa62e8831f2bc0285fef3bf8faaa7f3e09b (patch) | |
tree | 996905f41f413881efe15e04c0f4fef9d0702aec /drivers/cpufreq/cppc_cpufreq.c | |
parent | ea834c90aa7cc80a1b456f7a91432734d5087d16 (diff) |
cpufreq: scpi: Fix null-ptr-deref in scpi_cpufreq_get_rate()
[ Upstream commit 73b24dc731731edf762f9454552cb3a5b7224949 ]
cpufreq_cpu_get_raw() can return NULL when the target CPU is not present
in the policy->cpus mask. scpi_cpufreq_get_rate() does not check for
this case, which results in a NULL pointer dereference.
Fixes: 343a8d17fa8d ("cpufreq: scpi: remove arm_big_little dependency")
Signed-off-by: Henry Martin <bsdhenrymartin@gmail.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/cpufreq/cppc_cpufreq.c')
0 files changed, 0 insertions, 0 deletions