From owner-cvs-all@FreeBSD.ORG Sat Oct 2 22:33:27 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48AD216A4CE; Sat, 2 Oct 2004 22:33:27 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27E6143D1D; Sat, 2 Oct 2004 22:33:27 +0000 (GMT) (envelope-from green@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i92MXRsM029451; Sat, 2 Oct 2004 22:33:27 GMT (envelope-from green@repoman.freebsd.org) Received: (from green@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i92MXRBg029450; Sat, 2 Oct 2004 22:33:27 GMT (envelope-from green) Message-Id: <200410022233.i92MXRBg029450@repoman.freebsd.org> From: Brian Feldman Date: Sat, 2 Oct 2004 22:33:27 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/usb ugen.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Oct 2004 22:33:27 -0000 green 2004-10-02 22:33:27 UTC FreeBSD src repository Modified files: sys/dev/usb ugen.c Log: * When toggling short transfers on a bulk transfer endpoint, cancel and restart the current waiting transfer. If this isn't done, the device's next transfer (that we would like to do a short read on) is going to return an error -- for short transfer. * For bulk transfer endpoints, restore the maximum transfer length each time a transfer is done, or the first short transfer will make all the rest that size or smaller. * Remove impossibilities (malloc(M_WAITOK) == NULL, &var == NULL). Revision Changes Path 1.93 +22 -20 src/sys/dev/usb/ugen.c