[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180927090305.874661525@linuxfoundation.org>
Date: Thu, 27 Sep 2018 11:03:23 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, Pinzhen Xu <pinzhen.xu@...el.com>,
Mario Limonciello <mario.limonciello@...l.com>,
"Darren Hart (VMware)" <dvhart@...radead.org>
Subject: [PATCH 4.18 42/88] platform/x86: dell-smbios-wmi: Correct a memory leak
4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Mario Limonciello <mario.limonciello@...l.com>
commit affab51082174f60ef71ced8ab5fbe71f00e9ae3 upstream.
ACPI buffers were being allocated but never freed.
Reported-by: Pinzhen Xu <pinzhen.xu@...el.com>
Signed-off-by: Mario Limonciello <mario.limonciello@...l.com>
Cc: stable@...r.kernel.org
Signed-off-by: Darren Hart (VMware) <dvhart@...radead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
drivers/platform/x86/dell-smbios-wmi.c | 1 +
1 file changed, 1 insertion(+)
--- a/drivers/platform/x86/dell-smbios-wmi.c
+++ b/drivers/platform/x86/dell-smbios-wmi.c
@@ -78,6 +78,7 @@ static int run_smbios_call(struct wmi_de
dev_dbg(&wdev->dev, "result: [%08x,%08x,%08x,%08x]\n",
priv->buf->std.output[0], priv->buf->std.output[1],
priv->buf->std.output[2], priv->buf->std.output[3]);
+ kfree(output.pointer);
return 0;
}
Powered by blists - more mailing lists