From 3b9c10e98021e1f92e6f8c7ce1778b86ba68db10 Mon Sep 17 00:00:00 2001 From: Daniel Fu Date: Fri, 30 Aug 2013 19:48:22 +0800 Subject: [PATCH] cpuidle: Check the result of cpuidle_get_driver() against NULL 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 Signed-off-by: Rafael J. Wysocki --- Reading git-format-patch failed