HID: multitouch: Add memory barriers
authorAndri Yngvason <andri@yngvason.is>
Wed, 7 Sep 2022 15:01:59 +0000 (15:01 +0000)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 20 Sep 2022 11:13:40 +0000 (12:13 +0100)
commitbe6e2b5734a425941fcdcdbd2a9337be498ce2cf
tree66f7b11658283a81d8c5088a2d454298a89b4939
parenta1f764268f3390406f4dcbe3d2f537f2424f22ca
HID: multitouch: Add memory barriers

This fixes broken atomic checks which cause a race between the
release-timer and processing of hid input.

I noticed that contacts were sometimes sticking, even with the "sticky
fingers" quirk enabled. This fixes that problem.

Cc: stable@vger.kernel.org
Fixes: 9609827458c3 ("HID: multitouch: optimize the sticky fingers timer")
Signed-off-by: Andri Yngvason <andri@yngvason.is>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20220907150159.2285460-1-andri@yngvason.is
drivers/hid/hid-multitouch.c