projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Thermal/int340x/int3403: Fix memory leak
[cascardo/linux.git]
/
drivers
/
thermal
/
int340x_thermal
/
int3403_thermal.c
diff --git
a/drivers/thermal/int340x_thermal/int3403_thermal.c
b/drivers/thermal/int340x_thermal/int3403_thermal.c
index
1bfa6a6
..
479d754
100644
(file)
--- a/
drivers/thermal/int340x_thermal/int3403_thermal.c
+++ b/
drivers/thermal/int340x_thermal/int3403_thermal.c
@@
-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;