Re: [PATCH] cpufreq: apple-soc: Fix possible null-ptr-deref for cpufreq_cpu_get_raw()

From: Markus Elfring
Date: Mon Dec 30 2024 - 02:26:53 EST


> cpufreq_cpu_get_raw() may return NULL if the cpu is not in

CPU?


> policy->cpus cpu mask and it will cause null pointer dereference.


Would the summary phrase “Prevent null pointer dereference in apple_soc_cpufreq_get_rate()”
be a bit nicer here?

Regards,
Markus