Module Name: src
Committed By: skrll
Date: Fri May 15 06:23:54 UTC 2020
Modified Files:
src/sys/dev/usb: ohci.c
Log Message:
Use ux_length in isoc usb_syncmem. Missed in previous commit.
To generate a diff of this commit:
cvs rdiff -u -r1.304 -r1.305 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.304 src/sys/dev/usb/ohci.c:1.305
--- src/sys/dev/usb/ohci.c:1.304 Fri May 15 06:15:42 2020
+++ src/sys/dev/usb/ohci.c Fri May 15 06:23:54 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: ohci.c,v 1.304 2020/05/15 06:15:42 skrll Exp $ */
+/* $NetBSD: ohci.c,v 1.305 2020/05/15 06:23:54 skrll 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.304 2020/05/15 06:15:42 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.305 2020/05/15 06:23:54 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -3464,7 +3464,7 @@ ohci_device_isoc_enter(struct usbd_xfer
(UE_GET_DIR(xfer->ux_pipe->up_endpoint->ue_edesc->bEndpointAddress) == UE_DIR_IN);
if (xfer->ux_length)
- usb_syncmem(&xfer->ux_dmabuf, 0, xfer->ux_bufsize,
+ usb_syncmem(&xfer->ux_dmabuf, 0, xfer->ux_length,
isread ? BUS_DMASYNC_PREREAD : BUS_DMASYNC_PREWRITE);
if (isoc->next == -1) {