]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Input: appletouch - fix potential race between resume and open
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 20 Jan 2026 18:14:45 +0000 (10:14 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 21 Jan 2026 22:41:10 +0000 (14:41 -0800)
commit8a8e63fedbe433b888143fcb7ff55b7a87fa3163
treeca78d180e1638fbb3d468f49f7a2eb66fc9e4703
parent3d9586f1f90c9101b1abf5b0e9d70ca45f5f16db
Input: appletouch - fix potential race between resume and open

Take the input device's mutex in atp_resume() and atp_recover() to make
sure they are not racing with open and close methods, and use
input_device_enabled() helper to see if communication with the device
needs to be restarted after resume.

Link: https://patch.msgid.link/uuwucixxc2ckd6ul6yv5mdvkc3twytg4tg5a5vhfqg6m2qcodc@klaco6axglbm
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/appletouch.c