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>
This commit is contained in:
parent
64385f2fd8
commit
09047e75f6
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user