From: Mario Limonciello Date: Mon, 10 Sep 2018 18:01:53 +0000 (-0500) Subject: platform/x86: alienware-wmi: Correct a memory leak X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ff0e9f26288d2daee4950f42b37a3d3d30d36ec1;p=openwrt%2Fstaging%2Fblogic.git platform/x86: alienware-wmi: Correct a memory leak 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) --- diff --git a/drivers/platform/x86/alienware-wmi.c b/drivers/platform/x86/alienware-wmi.c index d975462a4c57..f10af5c383c5 100644 --- a/drivers/platform/x86/alienware-wmi.c +++ b/drivers/platform/x86/alienware-wmi.c @@ -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; }