Skip to content

Commit

Permalink
ACPI: fix memory leak in acpi_thermal_add() error path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vasily Averin authored and Len Brown committed May 14, 2006
1 parent 64385f2 commit 09047e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 09047e7

Please sign in to comment.