]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 13:01:42 +0000 (14:01 +0100)
commit2152b417be1652fe5ce590fd08ae9be8f0acd220
treefaa2962bbf25de0396f788f0e0dcb7d6b872410e
parent653bb5225cd4175d4e9f67b14823f4de9fad735e
HID: hid-steam: Make sure rumble work is canceled on removal

[ Upstream commit cc4f952427aaa44ecfd92542e10a65cce67bd6f4 ]

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>
Stable-dep-of: 79504249d7e2 ("HID: hid-steam: Move hidraw input (un)registering to work")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-steam.c