[CPUFREQ] Fix memory leaks in pcc_cpufreq_do_osc
authorPekka Enberg <penberg@cs.helsinki.fi>
Thu, 30 Sep 2010 19:57:33 +0000 (22:57 +0300)
committerDave Jones <davej@redhat.com>
Thu, 30 Sep 2010 20:14:23 +0000 (16:14 -0400)
commit3682930623f63c693845d9620c6bcdf5598c9bbb
tree5f34ebbd52bf077da60bb13b6e5b4daca469108c
parent86cf1474948a91c67b3dd58f8b360006c82e0068
[CPUFREQ] Fix memory leaks in pcc_cpufreq_do_osc

If acpi_evaluate_object() function call doesn't fail, we must kfree()
output.buffer before returning from pcc_cpufreq_do_osc().

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Dave Jones <davej@redhat.com>
arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c