Skip to content

Commit affab51

Browse files
Mario Limonciellodvhart
authored andcommitted
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>
1 parent 5b394b2 commit affab51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/platform/x86/dell-smbios-wmi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ static int run_smbios_call(struct wmi_device *wdev)
7878
dev_dbg(&wdev->dev, "result: [%08x,%08x,%08x,%08x]\n",
7979
priv->buf->std.output[0], priv->buf->std.output[1],
8080
priv->buf->std.output[2], priv->buf->std.output[3]);
81+
kfree(output.pointer);
8182

8283
return 0;
8384
}

0 commit comments

Comments
 (0)