Re: [PATCH] cpufreq: scpi: Fix null-ptr-deref in scpi_cpufreq_get_rate()

From: Markus Elfring
Date: Mon Apr 07 2025 - 05:06:47 EST


> 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.

See also once more:
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.15-rc1#n94


Can any other summary phrase variant become more desirable accordingly?

Regards,
Markus