From owner-p4-projects@FreeBSD.ORG Thu Jul 24 19:39:38 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 9C1B11065685; Thu, 24 Jul 2008 19:39:38 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FA271065683 for ; Thu, 24 Jul 2008 19:39:38 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 581968FC17 for ; Thu, 24 Jul 2008 19:39:38 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m6OJdcWs004503 for ; Thu, 24 Jul 2008 19:39:38 GMT (envelope-from hselasky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m6OJdcgi004501 for perforce@freebsd.org; Thu, 24 Jul 2008 19:39:38 GMT (envelope-from hselasky@FreeBSD.org) Date: Thu, 24 Jul 2008 19:39:38 GMT Message-Id: <200807241939.m6OJdcgi004501@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky To: Perforce Change Reviews Cc: Subject: PERFORCE change 145838 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2008 19:39:38 -0000 http://perforce.freebsd.org/chv.cgi?CH=145838 Change 145838 by hselasky@hselasky_laptop001 on 2008/07/24 19:39:21 Bugfixes. Affected files ... .. //depot/projects/usb/src/sys/dev/usb2/controller/ehci2.c#7 edit .. //depot/projects/usb/src/sys/dev/usb2/core/usb2_config_td.c#3 edit .. //depot/projects/usb/src/sys/dev/usb2/core/usb2_generic.c#15 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb2/controller/ehci2.c#7 (text+ko) ==== @@ -2737,7 +2737,7 @@ (EHCI_VIRTUAL_FRAMELIST_COUNT - 1); if ((xfer->pipe->is_synced == 0) || - (buf_offset < xfer->nframes)) { + (buf_offset < ((xfer->nframes + 7) / 8))) { /* * If there is data underflow or the pipe queue is empty we * schedule the transfer a few frames ahead of the current ==== //depot/projects/usb/src/sys/dev/usb2/core/usb2_config_td.c#3 (text+ko) ==== @@ -87,7 +87,7 @@ return (1); } if (usb2_proc_setup(&(ctd->usb2_proc), priv_mtx, USB_PRI_MED)) { - free(M_USBDEV, ctd->p_msgs); + free(ctd->p_msgs, M_USBDEV); ctd->p_msgs = NULL; return (1); } ==== //depot/projects/usb/src/sys/dev/usb2/core/usb2_generic.c#15 (text+ko) ==== @@ -948,7 +948,7 @@ } done: if (data) { - free(M_USBDEV, data); + free(data, M_USBDEV); } return (error); }