diff options
author | Martin Kelly <mkelly@xevo.com> | 2017-12-05 22:15:50 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-16 12:32:26 +0300 |
commit | 7983427599c456b1ff68d5571d98c8b3d7982757 (patch) | |
tree | 4e9459c9101f24d20d94ce5dafe79414e92cff1f /tools | |
parent | c0c6369d0f9161a7e7fe13b511b467c7dbaa26df (diff) | |
download | linux-7983427599c456b1ff68d5571d98c8b3d7982757.tar.xz |
can: usb_8dev: cancel urb on -EPIPE and -EPROTO
commit 12147edc434c9e4c7c2f5fee2e5519b2e5ac34ce upstream.
In mcba_usb, we have observed that when you unplug the device, the driver will
endlessly resubmit failing URBs, which can cause CPU stalls. This issue
is fixed in mcba_usb by catching the codes seen on device disconnect
(-EPIPE and -EPROTO).
This driver also resubmits in the case of -EPIPE and -EPROTO, so fix it
in the same way.
Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions