Author: hselasky
Date: Thu Jun  5 18:19:48 2014
New Revision: 267121
URL: http://svnweb.freebsd.org/changeset/base/267121

Log:
  Need to check the transfer cache field in the device done function
  to be sure all allocated channels are freed and not the transfer first
  one.

Modified:
  head/sys/dev/usb/controller/saf1761_otg.c

Modified: head/sys/dev/usb/controller/saf1761_otg.c
==============================================================================
--- head/sys/dev/usb/controller/saf1761_otg.c   Thu Jun  5 18:17:40 2014        
(r267120)
+++ head/sys/dev/usb/controller/saf1761_otg.c   Thu Jun  5 18:19:48 2014        
(r267121)
@@ -2098,7 +2098,7 @@ saf1761_otg_device_done(struct usb_xfer 
        } else {
                struct saf1761_otg_td *td;
 
-               td = xfer->td_transfer_first;
+               td = xfer->td_transfer_cache;
 
                if (td != NULL)
                        saf1761_host_channel_free(sc, td);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to