summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-06-05 15:03:55 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-06-05 15:03:55 +0000
commitff710b3ad37b61b40613fc6c401b218ce9e87f7f (patch)
treec92544965645cba1ed0c794a4f6f21c347d69c8d
parentb69c9e9c2bea254971fbb9e6a51343a3655f7391 (diff)
Notes
-rw-r--r--sys/dev/usb/net/uhso.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/net/uhso.c b/sys/dev/usb/net/uhso.c
index 17959935f61f0..e61458239cebc 100644
--- a/sys/dev/usb/net/uhso.c
+++ b/sys/dev/usb/net/uhso.c
@@ -1223,6 +1223,7 @@ uhso_mux_write_callback(struct usb_xfer *xfer, usb_error_t error)
ht->ht_muxport);
/* FALLTHROUGH */
case USB_ST_SETUP:
+tr_setup:
pc = usbd_xfer_get_frame(xfer, 1);
if (ucom_get_data(&sc->sc_ucom[ht->ht_muxport], pc,
0, 32, &actlen)) {
@@ -1253,7 +1254,8 @@ uhso_mux_write_callback(struct usb_xfer *xfer, usb_error_t error)
UHSO_DPRINTF(0, "error: %s\n", usbd_errstr(error));
if (error == USB_ERR_CANCELLED)
break;
- break;
+ usbd_xfer_set_stall(xfer);
+ goto tr_setup;
}
}