summaryrefslogtreecommitdiff
path: root/scripts/livepatch/Makefile
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2026-06-06 15:04:20 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-06-22 22:33:01 -0700
commitef166ce08801c5237662868d9ec0331d53a38ece (patch)
tree1fbb7208d907958c529f9de2eeadc7e52cbec03f /scripts/livepatch/Makefile
parent0e9943d2e4c63496b6ca84bc66fd3c71d40558e2 (diff)
Input: stop force-feedback timer when unregistering input devices
Memoryless force-feedback devices use a timer to manage playback of effects. When a driver for such a device is unbound (or the device is unregistered for other reasons), the driver typically frees its private data synchronously. However, the input_dev structure (and its associated force-feedback structures, including the timer) is only freed when the last user closes the corresponding device node. If userspace keeps the device node open while the device is unregistered (e.g., during driver unbind), the force-feedback timer can still fire after the driver's private data has been freed. Introduce a new 'stop' callback to struct ff_device, and call it from input_unregister_device() before the device is deleted. Implement this callback for memoryless devices and synchronously shut down the timer to ensure it is stopped and cannot be rearmed once unregistration happens. Assisted-by: Gemini:gemini-3.1-pro Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'scripts/livepatch/Makefile')
0 files changed, 0 insertions, 0 deletions