Commit 09047e75 authored by Vasily Averin's avatar Vasily Averin Committed by Len Brown

ACPI: fix memory leak in acpi_thermal_add() error path

Signed-off-by: default avatarVasily Averin <vvs@sw.ru>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 64385f2f
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment