Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Use ux_length in isoc usb_syncmem. Missed in pr...
details: https://anonhg.NetBSD.org/src/rev/df495bca5890
branches: trunk
changeset: 972071:df495bca5890
user: skrll <skrll%NetBSD.org@localhost>
date: Fri May 15 06:23:54 2020 +0000
description:
Use ux_length in isoc usb_syncmem. Missed in previous commit.
diffstat:
sys/dev/usb/ohci.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 700099c66e35 -r df495bca5890 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c Fri May 15 06:15:42 2020 +0000
+++ b/sys/dev/usb/ohci.c Fri May 15 06:23:54 2020 +0000
@@ -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 @@
(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) {
Home |
Main Index |
Thread Index |
Old Index