Re: [PATCH] HID: magicmouse: disable the multitouch work on removal
From: Jiri Kosina
Date: Thu Nov 19 2026 - 15:28:49 EST
On Mon, 9 Nov 2026, Myeonghun Pak wrote:
> During USB runtime reset-resume, usbhid can call magicmouse_reset_resume()
> without serialization against HID driver unbind. The USB interface
> remains bound to usbhid, so this callback can queue msc->work after
> magicmouse_remove() cancels it. The delayed work can then run after
> devres frees msc.
>
> Use disable_delayed_work_sync() to drain the work and reject later
> queueing. Probe initializes fresh work on rebind.
>
> Found by a static analysis tool under development.
Applied to hid.git#for-7.4/upstream-fixes, thanks.
[ ... snip ... ]
> base-commit: 630059a5a632377b9b7b487baccde92b7ae1dd47
This is bogus.
--
Jiri Kosina
SUSE Labs