diff options
author | Hans de Goede <hdegoede@redhat.com> | 2017-03-16 11:55:34 +0100 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2017-04-13 10:12:44 -0700 |
commit | e5bf5df7858e2339d277427129139995628c49a7 (patch) | |
tree | e75d7650eca495e3c2811b1ba3f1ef06bf4fd0f2 /drivers/platform/x86/intel-vbtn.c | |
parent | 1c7e28246e986a789a55f52ff681bf8d5d1dcada (diff) | |
download | linux-e5bf5df7858e2339d277427129139995628c49a7.tar.gz linux-e5bf5df7858e2339d277427129139995628c49a7.tar.bz2 linux-e5bf5df7858e2339d277427129139995628c49a7.zip |
platform/x86: dell-laptop: Protect kbd_state against races
The kbd led code has multiple entry points each of which modifies the
kbd_state by reading it, modifying a copy, writing the copy and on
error setting the modified copy writing back the original state.
This is racy, so add a mutex protection the read-modify-write cycle
on each of the entry points.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'drivers/platform/x86/intel-vbtn.c')
0 files changed, 0 insertions, 0 deletions