Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3333ea78 authored by Thomas Renninger's avatar Thomas Renninger Committed by Len Brown
Browse files

ACPI processor: Fix error path, also remove sysdev link



Signed-off-by: default avatarThomas Renninger <trenn@suse.de>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent d640113f
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -539,6 +539,7 @@ static int __cpuinit acpi_processor_add(struct acpi_device *device)
	thermal_cooling_device_unregister(pr->cdev);
	thermal_cooling_device_unregister(pr->cdev);
err_power_exit:
err_power_exit:
	acpi_processor_power_exit(pr, device);
	acpi_processor_power_exit(pr, device);
	sysfs_remove_link(&device->dev.kobj, "sysdev");
err_free_cpumask:
err_free_cpumask:
	free_cpumask_var(pr->throttling.shared_cpu_map);
	free_cpumask_var(pr->throttling.shared_cpu_map);