]> git.baikalelectronics.ru Git - kernel.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)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 14 Oct 2022 09:49:04 +0000 (10:49 +0100)
commitaa1087c82fc4e01a0f21854eec5afb12e0d23737
treed7fb0b48b7f441f7566560a4ac3d302c2c96637d
parent6bbad19da7e1edb856053122aef3bb24fbde10ef
HID: playstation: stop DualSense output work on remove.

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
drivers/hid/hid-playstation.c