https://github.com/torvalds/linux
Revision c7f33023308f3142433b7379718af5f0c2c322a6 authored by Martin Kelly on 05 December 2017, 18:34:03 UTC, committed by Marc Kleine-Budde on 08 December 2017, 09:45:11 UTC
When we unplug the device, we can see both -EPIPE and -EPROTO depending
on exact timing and what system we run on. If we continue to resubmit
URBs, they will immediately fail, and they can cause stalls, especially
on slower CPUs.

Fix this by not resubmitting on -EPROTO, as we already do on -EPIPE.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
1 parent 195bd52
Raw File
Tip revision: c7f33023308f3142433b7379718af5f0c2c322a6 authored by Martin Kelly on 05 December 2017, 18:34:03 UTC
can: mcba_usb: cancel urb on -EPROTO
Tip revision: c7f3302
.cocciconfig
[spatch]
	options = --timeout 200
	options = --use-gitgrep
back to top