svn commit: r190269 - head/sys/dev/usb

Andrew Thompson thompsa at FreeBSD.org
Sun Mar 22 10:09:57 PDT 2009


Author: thompsa
Date: Sun Mar 22 17:09:56 2009
New Revision: 190269
URL: http://svn.freebsd.org/changeset/base/190269

Log:
  Set the endpoint on the preallocated fifo so it doesnt get matched as an
  endpoint fifo.
  
  Reported by:	Pieter de Goeje

Modified:
  head/sys/dev/usb/usb_dev.c

Modified: head/sys/dev/usb/usb_dev.c
==============================================================================
--- head/sys/dev/usb/usb_dev.c	Sun Mar 22 16:27:14 2009	(r190268)
+++ head/sys/dev/usb/usb_dev.c	Sun Mar 22 17:09:56 2009	(r190269)
@@ -1610,6 +1610,7 @@ usb2_fifo_attach(struct usb2_device *ude
 	/* 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 *ude
 	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;


More information about the svn-src-all mailing list