summaryrefslogtreecommitdiff
path: root/drivers/tee
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2022-11-10 18:24:58 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-11-14 21:04:37 +0300
commit05eeee2b51b44c7ba5f1b8e5c41362020513f163 (patch)
treedb5f9529216677a28b1fc3af6f49f2eb9f483891 /drivers/tee
parentea37bec51ff442546e4a57d5cca2de9cc64a9df3 (diff)
downloadlinux-05eeee2b51b44c7ba5f1b8e5c41362020513f163.tar.xz
thermal/core: Protect sysfs accesses to thermal operations with thermal zone mutex
Protect access to thermal operations against thermal zone removal by acquiring the thermal zone device mutex. After acquiring the mutex, check if the thermal zone device is registered and abort the operation if not. With this change, we can call __thermal_zone_device_update() instead of thermal_zone_device_update() from trip_point_temp_store() and from emul_temp_store(). Similar, we can call __thermal_zone_set_trips() instead of thermal_zone_set_trips() from trip_point_hyst_store(). Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/tee')
0 files changed, 0 insertions, 0 deletions