platform/x86: alienware-wmi: Correct a memory leak
authorMario Limonciello <mario.limonciello@dell.com>
Mon, 10 Sep 2018 18:01:53 +0000 (13:01 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 16 Dec 2018 22:09:15 +0000 (22:09 +0000)
commit ff0e9f26288d2daee4950f42b37a3d3d30d36ec1 upstream.

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

Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/platform/x86/alienware-wmi.c

index 297b6640213f3f7ab45139e835e2ae092517b31a..2899727069e6d4a1c42075bc6dc47242ec815dfb 100644 (file)
@@ -447,6 +447,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;
 
 }