HID: hid-steam: Make sure rumble work is canceled on removal
authorVicki Pfau <vi@endrift.com>
Thu, 26 Dec 2024 02:34:24 +0000 (18:34 -0800)
committerJiri Kosina <jkosina@suse.com>
Thu, 9 Jan 2025 09:17:46 +0000 (10:17 +0100)
commitcc4f952427aaa44ecfd92542e10a65cce67bd6f4
tree4f295e7c48ebb32f9b452fa829c18abb680b49ad
parent80818fdc068eaab729bb793d790ae9fd053f7053
HID: hid-steam: Make sure rumble work is canceled on removal

When a force feedback command is sent from userspace, work is scheduled to pass
this data to the controller without blocking userspace itself. However, in
theory, this work might not be properly canceled if the controller is removed
at the exact right time. This patch ensures the work is properly canceled when
the device is removed.

Signed-off-by: Vicki Pfau <vi@endrift.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-steam.c