aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/int340x_thermal/int3403_thermal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/thermal/int340x_thermal/int3403_thermal.c b/drivers/thermal/int340x_thermal/int3403_thermal.c
index 1bfa6a69e77a..479d754c3f57 100644
--- 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)
369 p = buf.pointer; 369 p = buf.pointer;
370 if (!p || (p->type != ACPI_TYPE_PACKAGE)) { 370 if (!p || (p->type != ACPI_TYPE_PACKAGE)) {
371 printk(KERN_WARNING "Invalid PPSS data\n"); 371 printk(KERN_WARNING "Invalid PPSS data\n");
372 kfree(buf.pointer);
372 return -EFAULT; 373 return -EFAULT;
373 } 374 }
374 375
@@ -381,6 +382,7 @@ static int int3403_cdev_add(struct int3403_priv *priv)
381 382
382 priv->priv = obj; 383 priv->priv = obj;
383 384
385 kfree(buf.pointer);
384 /* TODO: add ACPI notification support */ 386 /* TODO: add ACPI notification support */
385 387
386 return result; 388 return result;