projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b394b2
)
platform/x86: dell-smbios-wmi: Correct a memory leak
author
Mario Limonciello
<
[email protected]
>
Mon, 10 Sep 2018 18:01:52 +0000
(13:01 -0500)
committer
Darren Hart (VMware)
<
[email protected]
>
Mon, 10 Sep 2018 20:45:43 +0000
(13:45 -0700)
ACPI buffers were being allocated but never freed.
Reported-by: Pinzhen Xu <
[email protected]
>
Signed-off-by: Mario Limonciello <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Darren Hart (VMware) <
[email protected]
>
drivers/platform/x86/dell-smbios-wmi.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/dell-smbios-wmi.c
b/drivers/platform/x86/dell-smbios-wmi.c
index 88afe5651d24aec8e1d30b748cd67f295d1558d5..cf2229ece9ff6f11cce316f2e51c8088c30053ec 100644
(file)
--- 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;
}