From 2989a67790c2383dd49324b5fcf873db969148b6 Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Sun, 22 Mar 2009 17:09:56 +0000 Subject: [PATCH] Set the endpoint on the preallocated fifo so it doesnt get matched as an endpoint fifo. Reported by: Pieter de Goeje --- sys/dev/usb/usb_dev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/usb/usb_dev.c b/sys/dev/usb/usb_dev.c index e5bbe371e34..cade278d3f9 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;