applied. thanks, -Len >-----Original Message----- >From: akpm@xxxxxxxx [mailto:akpm@xxxxxxxx] >Sent: Thursday, April 27, 2006 5:25 AM >To: Brown, Len >Cc: linux-acpi@xxxxxxxxxxxxxxx; akpm@xxxxxxxx; vvs@xxxxx >Subject: [patch 12/16] acpi: memory leakages in drivers/acpi/thermal.c > > >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-the >rmalc drivers/acpi/thermal.c >--- >devel/drivers/acpi/thermal.c~acpi-memory-leakages-in-drivers-ac >pi-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