summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorVasily Averin <vvs@sw.ru>2006-04-27 11:25:00 +0200
committerLen Brown <len.brown@intel.com>2006-05-14 05:43:39 +0200
commit09047e75f69428dcfa977b326256085154068b65 (patch)
treed04433b26231bc7932676873f5b40bd4c78ab0e9 /drivers/acpi
parentACPI: fix potential memory leak in acpi_evaluate_integer() error path (diff)
downloadlinux-09047e75f69428dcfa977b326256085154068b65.tar.xz
linux-09047e75f69428dcfa977b326256085154068b65.zip
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')
-rw-r--r--drivers/acpi/thermal.c2
1 files changed, 1 insertions, 1 deletions
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);