summaryrefslogtreecommitdiff
path: root/drivers/firmware
diff options
context:
space:
mode:
authorThara Gopinath <thara.gopinath@linaro.org>2018-11-27 17:43:11 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-12 20:02:12 +0100
commit5b8aafa6ce91dde873917178f697c212d5a1e0be (patch)
treeb8c8a9964e80df25d3dd16126e31e9d394a50667 /drivers/firmware
parent39b28779167233626344ed62dc2d53e517a8973c (diff)
thermal: Fix locking in cooling device sysfs update cur_state
[ Upstream commit 68000a0d983f539c95ebe5dccd4f29535c7ac0af ] Sysfs interface to update cooling device cur_state does not currently holding cooling device lock sometimes leading to stale values in cur_state if getting updated simultanelously from user space and thermal framework. Adding the proper locking code fixes this issue. Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org> Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/firmware')
0 files changed, 0 insertions, 0 deletions