summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-03-22 17:09:56 +0000
committerthompsa <thompsa@FreeBSD.org>2009-03-22 17:09:56 +0000
commit2756b7d35c20cc9880bd35c181adb2e031790f26 (patch)
tree3a28c4f714a8cbe6ef394bc589a538d187478d92
parent3460a89ecb3b74ddbb785f006a4e063128a858eb (diff)
downloadFreeBSD-src-2756b7d35c20cc9880bd35c181adb2e031790f26.zip
FreeBSD-src-2756b7d35c20cc9880bd35c181adb2e031790f26.tar.gz
Set the endpoint on the preallocated fifo so it doesnt get matched as an
endpoint fifo. Reported by: Pieter de Goeje
-rw-r--r--sys/dev/usb/usb_dev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_dev.c b/sys/dev/usb/usb_dev.c
index e5bbe37..cade278 100644
--- a/sys/dev/usb/usb_dev.c
+++ b/sys/dev/usb/usb_dev.c
@@ -1610,6 +1610,7 @@ usb2_fifo_attach(struct usb2_device *udev, void *priv_sc,
/* initialise FIFO structures */
f_tx->fifo_index = n + USB_FIFO_TX;
+ f_tx->dev_ep_index = -1;
f_tx->priv_mtx = priv_mtx;
f_tx->priv_sc0 = priv_sc;
f_tx->methods = pm;
@@ -1617,6 +1618,7 @@ usb2_fifo_attach(struct usb2_device *udev, void *priv_sc,
f_tx->udev = udev;
f_rx->fifo_index = n + USB_FIFO_RX;
+ f_rx->dev_ep_index = -1;
f_rx->priv_mtx = priv_mtx;
f_rx->priv_sc0 = priv_sc;
f_rx->methods = pm;
OpenPOWER on IntegriCloud