Files
linux/drivers/cpuidle
Daniel Fu 6ae69a801b cpuidle: Check the result of cpuidle_get_driver() against NULL
commit 3b9c10e980 upstream.

If the current CPU has no cpuidle driver, drv will be NULL in
cpuidle_driver_ref().  Check if that is the case before trying
to bump up the driver's refcount to prevent the kernel from
crashing.

[rjw: Subject and changelog]
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-14 06:42:15 -07:00
..
2013-04-24 00:54:51 +02:00
2012-11-15 00:34:23 +01:00