projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a80e1cd
)
ACPI, hp-wmi: Fix memory leak in acpi query
author
Zeng Zhaoming
<zengzm.kernel@gmail.com>
Thu, 18 Nov 2010 16:46:19 +0000
(
00:46
+0800)
committer
Matthew Garrett
<mjg@redhat.com>
Wed, 24 Nov 2010 17:07:10 +0000
(12:07 -0500)
Free acpi return memory after query.
Signed-off-by: Zeng Zhaoming <zengzm.kernel@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/hp-wmi.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/hp-wmi.c
b/drivers/platform/x86/hp-wmi.c
index
1dac659
..
9e05af9
100644
(file)
--- 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;
}