projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
affab51
)
platform/x86: alienware-wmi: Correct a memory leak
author
Mario Limonciello
<
[email protected]
>
Mon, 10 Sep 2018 18:01:53 +0000
(13:01 -0500)
committer
Darren Hart (VMware)
<
[email protected]
>
Mon, 10 Sep 2018 20:45:43 +0000
(13:45 -0700)
An ACPI buffer that was allocated was not being freed after use.
Signed-off-by: Mario Limonciello <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Darren Hart (VMware) <
[email protected]
>
drivers/platform/x86/alienware-wmi.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/alienware-wmi.c
b/drivers/platform/x86/alienware-wmi.c
index d975462a4c576748eb6163f512a607d4d3b8d19e..f10af5c383c551d7632d0e66b751792ae9dc7abd 100644
(file)
--- a/
drivers/platform/x86/alienware-wmi.c
+++ b/
drivers/platform/x86/alienware-wmi.c
@@
-536,6
+536,7
@@
static acpi_status alienware_wmax_command(struct wmax_basic_args *in_args,
if (obj && obj->type == ACPI_TYPE_INTEGER)
*out_data = (u32) obj->integer.value;
}
+ kfree(output.pointer);
return status;
}