aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZeng Zhaoming <zengzm.kernel@gmail.com>2010-11-19 00:46:19 +0800
committerMatthew Garrett <mjg@redhat.com>2010-11-24 12:07:10 -0500
commit53c96dfdd0c0ccbba7aee84c60ce0f2aa466413f (patch)
treeaf21186c30d43a05a2dc65504442a6221eb1b4eb
parenta80e1cd70144fe7727f2e2d838611b6b8cf8a6d5 (diff)
downloadmrst-s0i3-test-53c96dfdd0c0ccbba7aee84c60ce0f2aa466413f.tar.gz
mrst-s0i3-test-53c96dfdd0c0ccbba7aee84c60ce0f2aa466413f.tar.xz
mrst-s0i3-test-53c96dfdd0c0ccbba7aee84c60ce0f2aa466413f.zip
ACPI, hp-wmi: Fix memory leak in acpi query
Free acpi return memory after query. Signed-off-by: Zeng Zhaoming <zengzm.kernel@gmail.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
-rw-r--r--drivers/platform/x86/hp-wmi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c
index 1dac659b5e0..9e05af9c41c 100644
--- a/drivers/platform/x86/hp-wmi.c
+++ b/drivers/platform/x86/hp-wmi.c
@@ -172,6 +172,8 @@ static int hp_wmi_perform_query(int query, int write, u32 *buffer,
bios_return = *((struct bios_return *)obj->buffer.pointer);
memcpy(buffer, &bios_return.value, sizeof(bios_return.value));
+
+ kfree(obj);
return 0;
}