Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'acpi-6.7-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull ACPI fix from Rafael Wysocki:
"Fix the acpi_thermal_add() error path that may do a double-free in
some cases after recent changes (Dan Carpenter)"

* tag 'acpi-6.7-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
ACPI: thermal: Fix acpi_thermal_unregister_thermal_zone() cleanup

+2 -2
+2 -2
drivers/acpi/thermal.c
··· 702 702 703 703 static void acpi_thermal_unregister_thermal_zone(struct acpi_thermal *tz) 704 704 { 705 + thermal_zone_device_disable(tz->thermal_zone); 705 706 acpi_thermal_zone_sysfs_remove(tz); 706 707 thermal_zone_device_unregister(tz->thermal_zone); 707 - kfree(tz->trip_table); 708 708 tz->thermal_zone = NULL; 709 709 } 710 710 ··· 967 967 968 968 flush_workqueue(acpi_thermal_pm_queue); 969 969 acpi_thermal_unregister_thermal_zone(tz); 970 - 970 + kfree(tz->trip_table); 971 971 acpi_thermal_free_thermal_zone(tz); 972 972 } 973 973