diff options
author | Zeng Zhaoming <zengzm.kernel@gmail.com> | 2010-11-18 17:46:19 +0100 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2010-11-24 18:07:10 +0100 |
commit | 53c96dfdd0c0ccbba7aee84c60ce0f2aa466413f (patch) | |
tree | af21186c30d43a05a2dc65504442a6221eb1b4eb /drivers/platform/x86/hp-wmi.c | |
parent | msi-wmi: fix semantically incorrect use of keycode instead of scancode (diff) | |
download | linux-53c96dfdd0c0ccbba7aee84c60ce0f2aa466413f.tar.xz linux-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>
Diffstat (limited to 'drivers/platform/x86/hp-wmi.c')
-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 1dac659b5e0c..9e05af9c41cb 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; } |