aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/microchip-spi.c
diff options
context:
space:
mode:
authorDaniel J. Ogorchock <[email protected]>2022-07-13 20:20:59 +0000
committerJiri Kosina <[email protected]>2022-08-25 13:15:17 +0000
commit1ff89e06c2e5fab30274e4b02360d4241d6e605e (patch)
treedc7971c0d8c3df00467774ef0448d4fd3e2f368c /drivers/fpga/microchip-spi.c
parentHID: intel-ish-hid: ipc: Add Meteor Lake PCI device ID (diff)
downloadkernel-1ff89e06c2e5fab30274e4b02360d4241d6e605e.tar.gz
kernel-1ff89e06c2e5fab30274e4b02360d4241d6e605e.zip
HID: nintendo: fix rumble worker null pointer deref
We can dereference a null pointer trying to queue work to a destroyed workqueue. If the device is disconnected, nintendo_hid_remove is called, in which the rumble_queue is destroyed. Avoid using that queue to defer rumble work once the controller state is set to JOYCON_CTLR_STATE_REMOVED. This eliminates the null pointer dereference. Signed-off-by: Daniel J. Ogorchock <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/fpga/microchip-spi.c')
0 files changed, 0 insertions, 0 deletions