Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Mar 2009 17:09:56 +0000 (UTC)
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r190269 - head/sys/dev/usb
Message-ID:  <200903221709.n2MH9uGi074472@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903221709.n2MH9uGi074472>