diff options
author | Mario Limonciello <mario.limonciello@dell.com> | 2018-09-10 21:01:52 +0300 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2018-09-10 23:45:43 +0300 |
commit | affab51082174f60ef71ced8ab5fbe71f00e9ae3 (patch) | |
tree | f4f0a713b5d4bc5344045d2a732e2e2e8323406f /drivers/platform | |
parent | 5b394b2ddf0347bef56e50c69a58773c94343ff3 (diff) | |
download | linux-affab51082174f60ef71ced8ab5fbe71f00e9ae3.tar.xz |
platform/x86: dell-smbios-wmi: Correct a memory leak
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
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/dell-smbios-wmi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/dell-smbios-wmi.c b/drivers/platform/x86/dell-smbios-wmi.c index 88afe5651d24..cf2229ece9ff 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; } |