Module Name:    src
Committed By:   jakllsch
Date:           Tue May 19 18:57:26 UTC 2020

Modified Files:
        src/sys/dev/usb: ohci.c

Log Message:
ohci_device_isoc_done(): use ux_length rather than ux_bufsize

For consistency.  Nick may have missed this in previous because I'd
unexpectedly adjusted it.


To generate a diff of this commit:
cvs rdiff -u -r1.305 -r1.306 src/sys/dev/usb/ohci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/ohci.c
diff -u src/sys/dev/usb/ohci.c:1.305 src/sys/dev/usb/ohci.c:1.306
--- src/sys/dev/usb/ohci.c:1.305	Fri May 15 06:23:54 2020
+++ src/sys/dev/usb/ohci.c	Tue May 19 18:57:26 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: ohci.c,v 1.305 2020/05/15 06:23:54 skrll Exp $	*/
+/*	$NetBSD: ohci.c,v 1.306 2020/05/19 18:57:26 jakllsch Exp $	*/
 
 /*
  * Copyright (c) 1998, 2004, 2005, 2012 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.305 2020/05/15 06:23:54 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.306 2020/05/19 18:57:26 jakllsch Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -3643,7 +3643,7 @@ ohci_device_isoc_done(struct usbd_xfer *
 
 	DPRINTFN(10, "xfer=%#jx, actlen=%jd", (uintptr_t)xfer, xfer->ux_actlen,
 	    0, 0);
-	usb_syncmem(&xfer->ux_dmabuf, 0, xfer->ux_bufsize,
+	usb_syncmem(&xfer->ux_dmabuf, 0, xfer->ux_length,
 	    isread ? BUS_DMASYNC_POSTREAD : BUS_DMASYNC_POSTWRITE);
 }
 

Reply via email to