[CPUFREQ] x86_64: Proper null pointer check in powernow_k8_get
commit530515a06f90c0831732709efee4a99497bd2b7c
authorjacob.shin@amd.com <jacob.shin@amd.com>
Fri, 7 Apr 2006 17:49:51 +0000 (7 19:49 +0200)
committerDave Jones <davej@redhat.com>
Mon, 10 Apr 2006 23:14:33 +0000 (10 18:14 -0500)
tree791d8e7e54e0000d8b4bce057894036162fed3c0
parentb40fc4923ee3352c44ac2c0bd5f4d6018d6c4ad7
[CPUFREQ] x86_64: Proper null pointer check in powernow_k8_get

This prevents crashes on dual core system when enough ticks are lost.

Replaces earlier patch by me.

(Duplicate null data check in powernowk8_get() removed -- davej)

 arch/i386/kernel/cpu/cpufreq/powernow-k8.c |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Dave Jones <davej@redhat.com>
arch/i386/kernel/cpu/cpufreq/powernow-k8.c