]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
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)
committerDarren Hart (VMware) <dvhart@infradead.org>
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 <mario.limonciello@dell.com>
Cc: stable@vger.kernel.org
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/alienware-wmi.c

index d975462a4c576748eb6163f512a607d4d3b8d19e..f10af5c383c551d7632d0e66b751792ae9dc7abd 100644 (file)
@@ -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;
 
 }