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

Markus Elfring Markus.Elfring at web.de
Sun Dec 29 23:25:39 PST 2024


> 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



More information about the linux-arm-kernel mailing list