mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 23:51:37 +00:00
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>
This commit is contained in:
parent
5b394b2ddf
commit
affab51082
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user