[patch 12/16] acpi: memory leakages in drivers/acpi/thermal.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Vasily Averin <vvs@xxxxx>

acpi_thermal_write_trip_points() and acpi_thermal_add() do not call kfree()
for allocated memory on the error path.

Signed-off-by: Vasily Averin <vvs@xxxxx>
Cc: "Brown, Len" <len.brown@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/acpi/thermal.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/acpi/thermal.c~acpi-memory-leakages-in-drivers-acpi-thermalc drivers/acpi/thermal.c
--- devel/drivers/acpi/thermal.c~acpi-memory-leakages-in-drivers-acpi-thermalc	2006-04-10 23:16:26.000000000 -0700
+++ devel-akpm/drivers/acpi/thermal.c	2006-04-10 23:16:26.000000000 -0700
@@ -1329,7 +1329,7 @@ static int acpi_thermal_add(struct acpi_
 
 	result = acpi_thermal_add_fs(device);
 	if (result)
-		return_VALUE(result);
+		goto end;
 
 	init_timer(&tz->timer);
 
_
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux