android_kernel_samsung_msm8976/drivers/cpuidle
Daniel Fu 6ae69a801b cpuidle: Check the result of cpuidle_get_driver() against NULL
commit 3b9c10e98021e1f92e6f8c7ce1778b86ba68db10 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
..
governors Revert "cpuidle: Quickly notice prediction failure for repeat mode" 2013-08-11 18:35:24 -07:00
Kconfig cpuidle / kirkwood: remove redundant Kconfig option 2013-04-01 01:10:27 +02:00
Makefile cpuidle / kirkwood: remove redundant Kconfig option 2013-04-01 01:10:27 +02:00
coupled.c cpuidle: coupled: fix race condition between pokes and safe state 2013-09-26 17:18:02 -07:00
cpuidle-calxeda.c cpuidle: add maintainer entry 2013-04-26 22:30:25 +02:00
cpuidle-kirkwood.c cpuidle: add maintainer entry 2013-04-26 22:30:25 +02:00
cpuidle.c cpuidle: fix comment format 2013-04-24 00:54:51 +02:00
cpuidle.h cpuidle: support multiple drivers 2012-11-15 00:34:23 +01:00
driver.c cpuidle: Check the result of cpuidle_get_driver() against NULL 2014-04-14 06:42:15 -07:00
governor.c
sysfs.c cpuidle: fix number of initialized/destroyed states 2013-01-11 23:20:09 +01:00