提交 f01bc8f3 编写于 作者: S Srinivas Pandruvada 提交者: Zhang Rui

Thermal/int340x/int3403: Fix memory leak

Address memory leak for buffer allocated with ACPI_ALLOCATE_BUFFER.
Signed-off-by: NSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: NZhang Rui <rui.zhang@intel.com>
上级 47c93e6b
......@@ -369,6 +369,7 @@ static int int3403_cdev_add(struct int3403_priv *priv)
p = buf.pointer;
if (!p || (p->type != ACPI_TYPE_PACKAGE)) {
printk(KERN_WARNING "Invalid PPSS data\n");
kfree(buf.pointer);
return -EFAULT;
}
......@@ -381,6 +382,7 @@ static int int3403_cdev_add(struct int3403_priv *priv)
priv->priv = obj;
kfree(buf.pointer);
/* TODO: add ACPI notification support */
return result;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册