commit | e8ff46dd7e0f7a787af16ca39d0594c3be2f8859 | [log] [tgz] |
---|---|---|
author | Jon Medhurst <tixy@linaro.org> | Fri Jul 20 11:53:56 2012 +0100 |
committer | Jon Medhurst <tixy@linaro.org> | Mon Jul 23 13:35:07 2012 +0100 |
tree | 099dc00a3c0a1cedf8183f2876b34a747de970bd | |
parent | 179e31911956f5287135ed1187980fe197911567 [diff] |
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>