From: Vasily Averin Date: Thu, 27 Apr 2006 09:25:00 +0000 (-0400) Subject: ACPI: fix memory leak in acpi_thermal_add() error path X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=09047e75f69428dcfa977b326256085154068b65;p=linux-edison.git ACPI: fix memory leak in acpi_thermal_add() error path Signed-off-by: Vasily Averin Signed-off-by: Andrew Morton Signed-off-by: Len Brown --- diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 19f3ea48475..82389b17813 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c @@ -1342,7 +1342,7 @@ static int acpi_thermal_add(struct acpi_device *device) result = acpi_thermal_add_fs(device); if (result) - return_VALUE(result); + goto end; init_timer(&tz->timer);