Files
erofs-linux/drivers
Chen Changcheng aa9dde93e0 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: 2562756dde ("HID: add Alps I2C HID Touchpad-Stick support")
Cc: [email protected]
Signed-off-by: Chen Changcheng <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
2026-09-11 16:19:06 +02:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-08-07 21:22:50 +02:00
…
…
2026-07-31 13:28:05 +02:00
…
…
…
…
…
…
2026-08-10 12:46:29 +02:00
…
…
…
2026-08-06 09:15:40 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…