summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2023-01-23 09:21:10 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-01 08:34:39 +0100
commit19df0f77b3d1ef0b84df764b6c903262e2f1df94 (patch)
tree1dc68411a63c84512d82ffab275d9086ad06647e /Documentation
parent8294b4a889218daea3ddf7101f1afe62461883a6 (diff)
downloadlinux-stable-19df0f77b3d1ef0b84df764b6c903262e2f1df94.tar.gz
linux-stable-19df0f77b3d1ef0b84df764b6c903262e2f1df94.tar.bz2
linux-stable-19df0f77b3d1ef0b84df764b6c903262e2f1df94.zip
thermal: intel: int340x: Protect trip temperature from concurrent updates
commit 6757a7abe47bcb12cb2d45661067e182424b0ee3 upstream. Trip temperatures are read using ACPI methods and stored in the memory during zone initializtion and when the firmware sends a notification for change. This trip temperature is returned when the thermal core calls via callback get_trip_temp(). But it is possible that while updating the memory copy of the trips when the firmware sends a notification for change, thermal core is reading the trip temperature via the callback get_trip_temp(). This may return invalid trip temperature. To address this add a mutex to protect the invalid temperature reads in the callback get_trip_temp() and int340x_thermal_read_trips(). Fixes: 5fbf7f27fa3d ("Thermal/int340x: Add common thermal zone handler") Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Cc: 5.0+ <stable@vger.kernel.org> # 5.0+ Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions