diff options
author | Daniel J. Ogorchock <djogorchock@gmail.com> | 2022-07-13 16:20:59 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-08-25 15:15:17 +0200 |
commit | 1ff89e06c2e5fab30274e4b02360d4241d6e605e (patch) | |
tree | dc7971c0d8c3df00467774ef0448d4fd3e2f368c /lib/earlycpio.c | |
parent | 467249a7dff68451868ca79696aef69764193a8a (diff) | |
download | linux-1ff89e06c2e5fab30274e4b02360d4241d6e605e.tar.bz2 |
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 <djogorchock@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'lib/earlycpio.c')
0 files changed, 0 insertions, 0 deletions