diff options
author | Mario Limonciello <mario.limonciello@dell.com> | 2018-09-10 14:01:53 -0400 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2018-09-10 16:45:43 -0400 |
commit | ff0e9f26288d2daee4950f42b37a3d3d30d36ec1 (patch) | |
tree | b2a41ee97ac60a1499b251fca9ec89cd27292456 /drivers/platform/x86/alienware-wmi.c | |
parent | affab51082174f60ef71ced8ab5fbe71f00e9ae3 (diff) |
platform/x86: alienware-wmi: Correct a memory leak
An ACPI buffer that was allocated was not being freed after use.
Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Cc: stable@vger.kernel.org
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'drivers/platform/x86/alienware-wmi.c')
-rw-r--r-- | drivers/platform/x86/alienware-wmi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/alienware-wmi.c b/drivers/platform/x86/alienware-wmi.c index d975462a4c57..f10af5c383c5 100644 --- 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, | |||
536 | if (obj && obj->type == ACPI_TYPE_INTEGER) | 536 | if (obj && obj->type == ACPI_TYPE_INTEGER) |
537 | *out_data = (u32) obj->integer.value; | 537 | *out_data = (u32) obj->integer.value; |
538 | } | 538 | } |
539 | kfree(output.pointer); | ||
539 | return status; | 540 | return status; |
540 | 541 | ||
541 | } | 542 | } |