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: https://git.stricted.de/?a=commitdiff_plain;h=09047e75f69428dcfa977b326256085154068b65;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 19f3ea48475e..82389b178130 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);