From: Mario Limonciello Date: Mon, 10 Sep 2018 18:01:53 +0000 (-0500) Subject: platform/x86: alienware-wmi: Correct a memory leak X-Git-Tag: v4.14.73~36 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e2d5285b98ef43f55546873d1f58b41fe583f72d;p=users%2Fjedix%2Flinux-maple.git platform/x86: alienware-wmi: Correct a memory leak commit ff0e9f26288d2daee4950f42b37a3d3d30d36ec1 upstream. An ACPI buffer that was allocated was not being freed after use. Signed-off-by: Mario Limonciello Cc: stable@vger.kernel.org Signed-off-by: Darren Hart (VMware) Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/platform/x86/alienware-wmi.c b/drivers/platform/x86/alienware-wmi.c index 4eb8e1a472b2..e335b18da20f 100644 --- a/drivers/platform/x86/alienware-wmi.c +++ b/drivers/platform/x86/alienware-wmi.c @@ -519,6 +519,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; }