diff options
author | Jon Medhurst (Tixy) <tixy@linaro.org> | 2012-08-15 22:11:00 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-08-17 19:37:08 +0200 |
commit | 5fbbb90dfdedb9a258550e4e5debd3013266372e (patch) | |
tree | 86f4ad339e193301a8ac2626cc28e664978089b7 /drivers/idle | |
parent | 63c6ba4352009a5f85b32307c001abeb5baebd28 (diff) | |
download | linux-5fbbb90dfdedb9a258550e4e5debd3013266372e.tar.gz linux-5fbbb90dfdedb9a258550e4e5debd3013266372e.tar.bz2 linux-5fbbb90dfdedb9a258550e4e5debd3013266372e.zip |
cpuidle: Prevent null pointer dereference in cpuidle_coupled_cpu_notify
When a kernel is built to support multiple hardware types it's possible
that CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED is set but the hardware the
kernel is run on doesn't support cpuidle and therefore doesn't load a
driver for it. In this case, when the system is shut down,
cpuidle_coupled_cpu_notify() gets called with cpuidle_devices set to
NULL. There are quite possibly other circumstances where this
situation can also occur and we should check for it.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/idle')
0 files changed, 0 insertions, 0 deletions