diff options
| author | Konrad Rzeszutek Wilk <[email protected]> | 2012-08-16 20:06:55 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2012-08-17 17:37:14 +0000 |
| commit | 3735d524da64b70b41c764359da36f88aded3610 (patch) | |
| tree | 6545a0abb9fa053e7ccfeae4e43fd3172e651f65 /arch/powerpc/lib/code-patching.c | |
| parent | cpuidle: Prevent null pointer dereference in cpuidle_coupled_cpu_notify (diff) | |
| download | kernel-3735d524da64b70b41c764359da36f88aded3610.tar.gz kernel-3735d524da64b70b41c764359da36f88aded3610.zip | |
intel_idle: Check cpu_idle_get_driver() for NULL before dereferencing it.
If the machine is booted without any cpu_idle driver set
(b/c disable_cpuidle() has been called) we should follow
other users of cpu_idle API and check the return value
for NULL before using it.
Reported-and-tested-by: Mark van Dijk <[email protected]>
Suggested-by: Jan Beulich <[email protected]>
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions
