X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=drivers%2Fthermal%2Fint340x_thermal%2Fint3403_thermal.c;h=479d754c3f57061e0f5af5e710588c1df185f9b0;hb=f01bc8f37ec940caae8bf8b6e7169f7cc2b6877a;hp=1bfa6a69e77a15a8d021cb3ed33760b212ba9ce9;hpb=298647e31af52e795867a399fa049cebd88067ff;p=cascardo%2Flinux.git 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) 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;