1
0
Fork 0
alistair23-linux/drivers/usb/misc
Johan Hovold 41f15da2ab USB: yurex: fix control-URB timeout handling
commit 372c931319 upstream.

Make sure to always cancel the control URB in write() so that it can be
reused after a timeout or spurious CMD_ACK.

Currently any further write requests after a timeout would fail after
triggering a WARN() in usb_submit_urb() when attempting to submit the
already active URB.

Reported-by: syzbot+e87ebe0f7913f71f2ea5@syzkaller.appspotmail.com
Fixes: 6bc235a2e2 ("USB: add driver for Meywa-Denki & Kayac YUREX")
Cc: stable <stable@vger.kernel.org>     # 2.6.37
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-12 20:16:20 +01:00
..
sisusbvga USB: sisusbvga: Make console support depend on BROKEN 2020-12-21 13:27:06 +01:00
Kconfig USB: rio500: Remove Rio 500 kernel driver 2019-10-04 10:53:36 +02:00
Makefile USB: rio500: Remove Rio 500 kernel driver 2019-10-04 10:53:36 +02:00
adutux.c USB: adutux: fix debugging 2020-11-05 11:43:17 +01:00
appledisplay.c appledisplay: fix error handling in the scheduled work 2019-11-29 10:10:25 +01:00
chaoskey.c USB: chaoskey: fix error case of a timeout 2019-11-29 10:10:24 +01:00
cypress_cy7c63.c USB: cypress_cy7c63: convert to use dev_groups 2019-08-09 07:55:44 +02:00
cytherm.c USB: cytherm: convert to use dev_groups 2019-08-09 07:55:44 +02:00
ehset.c
emi26.c
emi62.c
ezusb.c
ftdi-elan.c usb: ftdi-elan: fix possible condition with no effect (if == else) 2019-06-03 15:21:57 +02:00
idmouse.c USB: idmouse: fix interface sanity checks 2019-12-17 19:55:45 +01:00
iowarrior.c USB: iowarrior: fix up report size handling for some devices 2020-08-11 15:33:32 +02:00
isight_firmware.c
ldusb.c USB: ldusb: fix control-message timeout 2019-10-28 17:46:24 +01:00
legousbtower.c USB: legousbtower: fix a signedness bug in tower_probe() 2019-10-15 20:07:43 +02:00
lvstest.c USB: lvtest: return proper error code in probe 2020-09-03 11:27:02 +02:00
trancevibrator.c USB: trancevibrator: convert to use dev_groups 2019-08-09 07:55:45 +02:00
usb251xb.c usb: usb251xb: Reallow swap-dx-lanes to apply to the upstream port 2019-07-25 11:16:19 +02:00
usb3503.c usb: misc: usb3503: get optional clock by devm_clk_get_optional() 2019-04-19 14:24:25 +02:00
usb4604.c
usb_u132.h
usblcd.c USB: usblcd: use pr_err() 2019-10-04 11:11:08 +02:00
usbsevseg.c USB: usbsevseg: convert to use dev_groups 2019-08-09 07:55:45 +02:00
usbtest.c usb: usbtest: fix missing kfree(dev->buf) in usbtest_disconnect 2020-07-09 09:37:50 +02:00
uss720.c usb: misc: uss720: Fix two sleep-in-atomic-context bugs 2018-09-05 14:36:53 +02:00
yurex.c USB: yurex: fix control-URB timeout handling 2021-01-12 20:16:20 +01:00