stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] platform/x86: dell-smbios-wmi: Correct a memory leak
@ 2018-09-10 18:01 Mario Limonciello
  2018-09-10 18:01 ` [PATCH 2/2] platform/x86: alienware-wmi: " Mario Limonciello
  2018-09-10 20:51 ` [PATCH 1/2] platform/x86: dell-smbios-wmi: " Darren Hart
  0 siblings, 2 replies; 5+ messages in thread
From: Mario Limonciello @ 2018-09-10 18:01 UTC (permalink / raw)
  To: dvhart, Andy Shevchenko
  Cc: LKML, platform-driver-x86, Mario Limonciello, stable

ACPI buffers were being allocated but never freed.

Reported-by: Pinzhen Xu <pinzhen.xu@intel.com>
Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Cc: stable@vger.kernel.org
---
 drivers/platform/x86/dell-smbios-wmi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/platform/x86/dell-smbios-wmi.c b/drivers/platform/x86/dell-smbios-wmi.c
index 88afe56..cf2229e 100644
--- 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_device *wdev)
 	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;
 }
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-09-12 21:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-10 18:01 [PATCH 1/2] platform/x86: dell-smbios-wmi: Correct a memory leak Mario Limonciello
2018-09-10 18:01 ` [PATCH 2/2] platform/x86: alienware-wmi: " Mario Limonciello
2018-09-10 20:51 ` [PATCH 1/2] platform/x86: dell-smbios-wmi: " Darren Hart
2018-09-12 12:14   ` Mario.Limonciello
2018-09-12 16:06     ` Darren Hart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).