From: Konrad Rzeszutek Wilk Date: Thu, 16 Aug 2012 20:06:55 +0000 (+0200) Subject: intel_idle: Check cpu_idle_get_driver() for NULL before dereferencing it. X-Git-Tag: v3.2.56~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcd8e204d28377b29539f7e97bf91fc7ef50ab17;p=pandora-kernel.git intel_idle: Check cpu_idle_get_driver() for NULL before dereferencing it. commit 3735d524da64b70b41c764359da36f88aded3610 upstream. If the machine is booted without any cpu_idle driver set (b/c disable_cpuidle() has been called) we should follow other users of cpu_idle API and check the return value for NULL before using it. Reported-and-tested-by: Mark van Dijk Suggested-by: Jan Beulich Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Rafael J. Wysocki Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed