cpufreq: vexpress: Safely handle missing CPU frequencies

If there are no CPU frequencies in the device tree for the current
cluster, then vexpress_cpufreq_of_init() passes a null pointer to
cpufreq_frequency_table_cpuinfo(), which it then dereferences.

This patch tests for this situation and cleanly returns and error
instead.

Signed-off-by: Jon Medhurst <tixy@linaro.org>
1 file changed