Commit 08b8a383 authored by Mario Limonciello's avatar Mario Limonciello Committed by Kleber Sacilotto de Souza

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

BugLink: https://bugs.launchpad.net/bugs/1798617

commit ff0e9f26 upstream.

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>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 968dc01b
......@@ -463,6 +463,7 @@ static acpi_status alienware_hdmi_command(struct hdmi_args *in_args,
if (obj && obj->type == ACPI_TYPE_INTEGER)
*out_data = (u32) obj->integer.value;
}
kfree(output.pointer);
return status;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment