aboutsummaryrefslogtreecommitdiff
path: root/drivers/cpuidle/driver.c
diff options
context:
space:
mode:
authorGary S. Robertson <gary.robertson@linaro.org>2014-05-06 01:11:53 -0500
committerGary S. Robertson <gary.robertson@linaro.org>2014-05-06 01:11:53 -0500
commite8f84c44a0d78cb3413d69331bee6ce4d86b2e1d (patch)
tree0eb14b7e337b7b8dbc1bd97e11a13e1abc114b9a /drivers/cpuidle/driver.c
parente365c882ed38dbbe1a6ff4ed72414835390368a6 (diff)
parentf512eefd5cde0ad21bd99bbfe4dc70b62805838e (diff)
Merge tag 'v3.10.37' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into linux-lnglinux-lng-v3.10.37-finallinux-lng-v3.10.xlinux-lng
This is the 3.10.37 stable release Conflicts: scripts/package/builddeb
Diffstat (limited to 'drivers/cpuidle/driver.c')
-rw-r--r--drivers/cpuidle/driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/cpuidle/driver.c b/drivers/cpuidle/driver.c
index 8dfaaae94444..2253271b3fac 100644
--- a/drivers/cpuidle/driver.c
+++ b/drivers/cpuidle/driver.c
@@ -251,7 +251,8 @@ struct cpuidle_driver *cpuidle_driver_ref(void)
spin_lock(&cpuidle_driver_lock);
drv = cpuidle_get_driver();
- drv->refcnt++;
+ if (drv)
+ drv->refcnt++;
spin_unlock(&cpuidle_driver_lock);
return drv;