summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@dell.com>2018-09-10 13:01:53 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-29 03:06:03 -0700
commite2d5285b98ef43f55546873d1f58b41fe583f72d (patch)
tree393cde50abe5a2ae4a8dd8cf982fba99c68a8969 /drivers/platform
parentff6805037d838dd003b6fb88b9b0232b3d05bc07 (diff)
downloadlinux-stable-e2d5285b98ef43f55546873d1f58b41fe583f72d.tar.gz
linux-stable-e2d5285b98ef43f55546873d1f58b41fe583f72d.tar.bz2
linux-stable-e2d5285b98ef43f55546873d1f58b41fe583f72d.zip
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 <mario.limonciello@dell.com> Cc: stable@vger.kernel.org Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/alienware-wmi.c1
1 files changed, 1 insertions, 0 deletions
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;
}