mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
thermal: intel: int340x: Add locking to int340x_thermal_get_trip_type()
[ Upstream commitacd7e9ee57] In order to prevent int340x_thermal_get_trip_type() from possibly racing with int340x_thermal_read_trips() invoked by int3403_notify() add locking to it in analogy with int340x_thermal_get_trip_temp(). Fixes:6757a7abe4("thermal: intel: int340x: Protect trip temperature from concurrent updates") Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
a8f2ee1071
commit
76d130250a
1 changed files with 7 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue