diff options
author | Zeng Zhaoming <zengzm.kernel@gmail.com> | 2010-11-19 00:46:19 +0800 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2010-11-24 12:07:10 -0500 |
commit | 53c96dfdd0c0ccbba7aee84c60ce0f2aa466413f (patch) | |
tree | af21186c30d43a05a2dc65504442a6221eb1b4eb /drivers/platform | |
parent | a80e1cd70144fe7727f2e2d838611b6b8cf8a6d5 (diff) | |
download | kernel_samsung_tuna-53c96dfdd0c0ccbba7aee84c60ce0f2aa466413f.zip kernel_samsung_tuna-53c96dfdd0c0ccbba7aee84c60ce0f2aa466413f.tar.gz kernel_samsung_tuna-53c96dfdd0c0ccbba7aee84c60ce0f2aa466413f.tar.bz2 |
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>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/hp-wmi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c index 1dac659..9e05af9 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; } |