diff options
| author | Tetsuo Handa <[email protected]> | 2022-08-28 03:36:27 +0000 |
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2022-08-28 03:54:06 +0000 |
| commit | 98e01215708b6d416345465c09dce2bd4868c67a (patch) | |
| tree | 602ce740eb109c3d02aef0d6e00a8e1d0ffb4deb /drivers/usb/cdns3/cdns3-trace.h | |
| parent | Input: goodix - add compatible string for GT1158 (diff) | |
| download | kernel-98e01215708b6d416345465c09dce2bd4868c67a.tar.gz kernel-98e01215708b6d416345465c09dce2bd4868c67a.zip | |
Input: iforce - wake up after clearing IFORCE_XMIT_RUNNING flag
syzbot is reporting hung task at __input_unregister_device() [1], for
iforce_close() waiting at wait_event_interruptible() with dev->mutex held
is blocking input_disconnect_device() from __input_unregister_device().
It seems that the cause is simply that commit c2b27ef672992a20 ("Input:
iforce - wait for command completion when closing the device") forgot to
call wake_up() after clear_bit().
Fix this problem by introducing a helper that calls clear_bit() followed
by wake_up_all().
Reported-by: syzbot <[email protected]>
Fixes: c2b27ef672992a20 ("Input: iforce - wait for command completion when closing the device")
Tested-by: syzbot <[email protected]>
Suggested-by: Fabio M. De Francesco <[email protected]>
Co-developed-by: Hillf Danton <[email protected]>
Signed-off-by: Hillf Danton <[email protected]>
Signed-off-by: Tetsuo Handa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: [email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.h')
0 files changed, 0 insertions, 0 deletions
