Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a7b0ecb authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

Merge branch 'pm-cpuidle'

* pm-cpuidle:
  cpuidle: Check the result of cpuidle_get_driver() against NULL
parents 416fd1ae 3b9c10e9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -331,6 +331,7 @@ struct cpuidle_driver *cpuidle_driver_ref(void)
	spin_lock(&cpuidle_driver_lock);

	drv = cpuidle_get_driver();
	if (drv)
		drv->refcnt++;

	spin_unlock(&cpuidle_driver_lock);