diff options
| author | Chen Changcheng <chenchangcheng@kylinos.cn> | 2026-08-14 15:06:20 +0800 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-09-11 16:19:06 +0200 |
| commit | aa9dde93e05a837645fdfd577eea71f0733f0694 (patch) | |
| tree | 36a02c70cae0a1dc27e1da67ce47460ce0d8ccc5 /scripts/git.orderFile | |
| parent | a1a5ad37e50ceb192c07ac7e2d7143638cd4d110 (diff) | |
HID: alps: unregister DualPoint Stick input device on remove
alps_input_configured() allocates a second input device ("DualPoint
Stick") with input_allocate_device() and registers it, but the
alps_driver struct has no .remove handler and input2 is not tracked in
hdev->inputs. The default remove path (hid_hw_stop -> hidinput_disconnect)
only iterates hdev->inputs, so input2 is never unregistered and leaks
on every device removal.
Add a .remove handler that stops the device first (preventing URB
callbacks from touching input2 during teardown) and then unregisters
input2.
Fixes: 2562756dde55 ("HID: add Alps I2C HID Touchpad-Stick support")
Cc: stable@vger.kernel.org
Signed-off-by: Chen Changcheng <chenchangcheng@kylinos.cn>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions
