diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-08-17 00:06:55 +0400 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2014-04-02 03:59:02 +0400 |
commit | dcd8e204d28377b29539f7e97bf91fc7ef50ab17 (patch) | |
tree | 33b38c84d5a8aa8f02c22749d010babe665b373b /net/wireless | |
parent | c7160985f53fe845eb5e882a492196a844962650 (diff) | |
download | linux-dcd8e204d28377b29539f7e97bf91fc7ef50ab17.tar.xz |
intel_idle: Check cpu_idle_get_driver() for NULL before dereferencing it.
commit 3735d524da64b70b41c764359da36f88aded3610 upstream.
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 <mark@internecto.net>
Suggested-by: Jan Beulich <JBeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net/wireless')
0 files changed, 0 insertions, 0 deletions