Re: [PATCH] cpufreq: apple-soc: Fix null-ptr-deref in apple_soc_cpufreq_get_rate()

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


> cpufreq_cpu_get_raw() can return NULL when the target CPU is not present
> in the policy->cpus mask. apple_soc_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