From owner-svn-src-head@FreeBSD.ORG Thu Jun 5 18:19:49 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 037031FD; Thu, 5 Jun 2014 18:19:49 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E51322AED; Thu, 5 Jun 2014 18:19:48 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s55IJmOj004864; Thu, 5 Jun 2014 18:19:48 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s55IJmdU004863; Thu, 5 Jun 2014 18:19:48 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201406051819.s55IJmdU004863@svn.freebsd.org> From: Hans Petter Selasky Date: Thu, 5 Jun 2014 18:19:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r267121 - head/sys/dev/usb/controller X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2014 18:19:49 -0000 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);