Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Mar 2010 23:34:05 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 175812 for review
Message-ID:  <201003182334.o2INY5MK098267@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=175812

Change 175812 by hselasky@hselasky_laptop001 on 2010/03/18 23:34:01

	
	USB CORE (bugfix for compat linux layer):
	
		- make sure the bsd_urb_list gets initialised and
		  that new URB's are queued at the end of the list.
		- patch by: HPS @

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_compat_linux.c#54 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/usb_compat_linux.c#54 (text+ko) ====

@@ -435,7 +435,7 @@
 	    uhe->bsd_xfer[1]) {
 		/* we are ready! */
 
-		TAILQ_INSERT_HEAD(&uhe->bsd_urb_list, urb, bsd_urb_list);
+		TAILQ_INSERT_TAIL(&uhe->bsd_urb_list, urb, bsd_urb_list);
 
 		urb->status = -EINPROGRESS;
 
@@ -908,6 +908,7 @@
 				if (p_uhe) {
 					bcopy(ed, &p_uhe->desc, sizeof(p_uhe->desc));
 					p_uhe->bsd_iface_index = iface_index - 1;
+					TAILQ_INIT(&p_uhe->bsd_urb_list);
 					p_uhe++;
 				}
 				if (p_uhi) {



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