]> git.baikalelectronics.ru Git - kernel.git/commit
HID: multitouch: Add memory barriers
authorAndri Yngvason <andri@yngvason.is>
Wed, 7 Sep 2022 15:01:59 +0000 (15:01 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:14 +0000 (13:22 +0200)
commitb86a75fa685654cc375f242db77224b6602e843f
treeb6958d505c09ad2ce1ca9dceb739a753c16329ed
parenta400e183f31a88c77a6ae74f406eeff322a9545b
HID: multitouch: Add memory barriers

commit 54f0f4579982006777d3af1bbc01e5873864024e upstream.

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: 881ba4f7e5d3 ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-multitouch.c