Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb ohci_device_isoc_done(): use ux_length rather th...
details: https://anonhg.NetBSD.org/src/rev/3c7c3662172f
branches: trunk
changeset: 1010239:3c7c3662172f
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Tue May 19 18:57:26 2020 +0000
description:
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.
diffstat:
sys/dev/usb/ohci.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r cca6b676186c -r 3c7c3662172f sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c Tue May 19 18:32:35 2020 +0000
+++ b/sys/dev/usb/ohci.c Tue May 19 18:57:26 2020 +0000
@@ -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 @@
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);
}
Home |
Main Index |
Thread Index |
Old Index