Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jun 2014 18:19:48 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r267121 - head/sys/dev/usb/controller
Message-ID:  <201406051819.s55IJmdU004863@svn.freebsd.org>

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



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