]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: playstation: stop DualSense output work on remove.
authorRoderick Colenbrander <roderick@gaikai.com>
Mon, 10 Oct 2022 21:23:11 +0000 (14:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 10:22:55 +0000 (12:22 +0200)
commit5cf8df4e2d08f29810bc9639de3e1fc04f38e97f
tree2be3f828a2bf680075bfe5c03be9f4d2cfb6cbb9
parentaa0df600bf0cc9a5630cbf83e22533b6f0418269
HID: playstation: stop DualSense output work on remove.

commit 182934a1e93b17f4edf71f4fcc8d19b19a6fe67a upstream.

Ensure we don't schedule any new output work on removal and wait
for any existing work to complete. If we don't do this e.g. rumble
work can get queued during deletion and we trigger a kernel crash.

Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
CC: stable@vger.kernel.org
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20221010212313.78275-2-roderick.colenbrander@sony.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-playstation.c