diff options
author | Vasily Averin <vvs@sw.ru> | 2006-04-27 05:25:00 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-05-13 23:43:39 -0400 |
commit | 09047e75f69428dcfa977b326256085154068b65 (patch) | |
tree | d04433b26231bc7932676873f5b40bd4c78ab0e9 /drivers/acpi/thermal.c | |
parent | 64385f2fd8bc9d8803c8d10dcd391871cb126b77 (diff) |
ACPI: fix memory leak in acpi_thermal_add() error path
Signed-off-by: Vasily Averin <vvs@sw.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/thermal.c')
-rw-r--r-- | drivers/acpi/thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
1342 | 1342 | ||
1343 | result = acpi_thermal_add_fs(device); | 1343 | result = acpi_thermal_add_fs(device); |
1344 | if (result) | 1344 | if (result) |
1345 | return_VALUE(result); | 1345 | goto end; |
1346 | 1346 | ||
1347 | init_timer(&tz->timer); | 1347 | init_timer(&tz->timer); |
1348 | 1348 | ||