From: Jon Medhurst (Tixy) Date: Wed, 15 Aug 2012 20:11:00 +0000 (+0200) Subject: cpuidle: Prevent null pointer dereference in cpuidle_coupled_cpu_notify X-Git-Tag: v3.6-rc3~33^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fbbb90dfdedb9a258550e4e5debd3013266372e;p=pandora-kernel.git 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 Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed