summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2026-08-04 20:46:31 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-10-09 22:55:36 -0700
commit68a0deade76c01da05f434df9094c2d4cefce1ef (patch)
tree5fcb58afdd1b11f7cd5c31dec7fa7648cb7dfe29 /include/uapi/linux
parent8a1a516e8ee68a0c99bd46eec1cc052637bd4670 (diff)
downloadlinux-next-68a0deade76c01da05f434df9094c2d4cefce1ef.tar.gz
linux-next-68a0deade76c01da05f434df9094c2d4cefce1ef.zip
Input: mms114 - fix touch slot corruption in suspend
In mms114_suspend, the driver synthesizes touch release events for all slots and calls input_sync before disabling the hardware interrupt via mms114_stop. Because the threaded interrupt handler runs independently and does not share a lock with this early part of the suspend path, an incoming hardware interrupt can fire after input_sync completes but before disable_irq is invoked. If a touch event arrives during this window, the interrupt handler reports the touch slot as active again, overwriting the synthetic release event right before the system goes to sleep. Upon resume, lifting the finger does not generate a release interrupt, potentially leaving userspace with a stuck active touch slot. Fix this race by calling mms114_stop, which disables the IRQ and synchronizes with any executing interrupt handler, before synthesizing the touch release events. Also ensure that we only synthesize touch release events if the input device is enabled, keeping the entire suspend sequence protected by input_dev->mutex. Reported-by: sashiko-bot@kernel.org Assisted-by: Antigravity:gemini-3.6-flash Link: https://patch.msgid.link/anKxGkyRRu5A92Q_@google.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions