Skip to content
Snippets Groups Projects
Commit ff0e9f26 authored by Mario Limonciello's avatar Mario Limonciello Committed by Darren Hart (VMware)
Browse files

platform/x86: alienware-wmi: Correct a memory leak


An ACPI buffer that was allocated was not being freed after use.

Signed-off-by: default avatarMario Limonciello <mario.limonciello@dell.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarDarren Hart (VMware) <dvhart@infradead.org>
parent affab510
No related branches found
No related tags found
No related merge requests found
...@@ -536,6 +536,7 @@ static acpi_status alienware_wmax_command(struct wmax_basic_args *in_args, ...@@ -536,6 +536,7 @@ static acpi_status alienware_wmax_command(struct wmax_basic_args *in_args,
if (obj && obj->type == ACPI_TYPE_INTEGER) if (obj && obj->type == ACPI_TYPE_INTEGER)
*out_data = (u32) obj->integer.value; *out_data = (u32) obj->integer.value;
} }
kfree(output.pointer);
return status; return status;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment