diff options
author | 2013-08-30 19:48:22 +0800 | |
---|---|---|
committer | 2013-08-30 21:53:41 +0200 | |
commit | 3b9c10e98021e1f92e6f8c7ce1778b86ba68db10 (patch) | |
tree | e8c2963b4d5a2c8d90836fc069256c733be54232 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cpuidle: coupled: fix race condition between pokes and safe state (diff) | |
download | linux-dev-3b9c10e98021e1f92e6f8c7ce1778b86ba68db10.tar.xz linux-dev-3b9c10e98021e1f92e6f8c7ce1778b86ba68db10.zip |
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 <danifu@nvidia.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions