PERFORCE change 175812 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Mar 18 23:34:06 UTC 2010
http://p4web.freebsd.org/chv.cgi?CH=175812
Change 175812 by hselasky at 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) {
More information about the p4-projects
mailing list