mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-24 05:39:33 +00:00
Instead of using snprintf() to populate the ACPI object name in int340x_thermal_set_trip_temp(), use an appropriate initializer and make the function fail if its trip argument is greater than 9, because ACPI object names can only be 4 characters long and it does not make sense to even try to evaluate objects with longer names (that argument is guaranteed to be non-negative, because it comes from the thermal code that will not pass negative trip numbers to zone callbacks). Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Tested-by: Zhang Rui <rui.zhang@intel.com> Reviewed-by: Zhang Rui <rui.zhang@intel.com> |
||
|---|---|---|
| .. | ||
| acpi_thermal_rel.c | ||
| acpi_thermal_rel.h | ||
| int340x_thermal_zone.c | ||
| int340x_thermal_zone.h | ||
| int3400_thermal.c | ||
| int3401_thermal.c | ||
| int3402_thermal.c | ||
| int3403_thermal.c | ||
| int3406_thermal.c | ||
| Kconfig | ||
| Makefile | ||
| processor_thermal_device_pci_legacy.c | ||
| processor_thermal_device_pci.c | ||
| processor_thermal_device.c | ||
| processor_thermal_device.h | ||
| processor_thermal_mbox.c | ||
| processor_thermal_rapl.c | ||
| processor_thermal_rfim.c | ||