Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/dev/lib/libugenhc Fix bulk xfer buffer with usedma ...



details:   https://anonhg.NetBSD.org/src/rev/74a876be715f
branches:  trunk
changeset: 823252:74a876be715f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Apr 17 07:13:30 2017 +0000

description:
Fix bulk xfer buffer with usedma = false.

diffstat:

 sys/rump/dev/lib/libugenhc/ugenhc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5509c5c85cbb -r 74a876be715f sys/rump/dev/lib/libugenhc/ugenhc.c
--- a/sys/rump/dev/lib/libugenhc/ugenhc.c       Mon Apr 17 05:48:18 2017 +0000
+++ b/sys/rump/dev/lib/libugenhc/ugenhc.c       Mon Apr 17 07:13:30 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ugenhc.c,v 1.25 2017/04/17 05:11:05 riastradh Exp $    */
+/*     $NetBSD: ugenhc.c,v 1.26 2017/04/17 07:13:30 riastradh Exp $    */
 
 /*
  * Copyright (c) 2009, 2010 Antti Kantee.  All Rights Reserved.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ugenhc.c,v 1.25 2017/04/17 05:11:05 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ugenhc.c,v 1.26 2017/04/17 07:13:30 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -603,7 +603,7 @@
        endpt = UE_GET_ADDR(endpt);
        KASSERT(endpt < UGEN_NEPTS);
 
-       buf = KERNADDR(&xfer->ux_dmabuf, 0);
+       buf = xfer->ux_buf;
        done = 0;
        if ((ed->bmAttributes & UE_XFERTYPE) == UE_ISOCHRONOUS) {
                for (i = 0, len = 0; i < xfer->ux_nframes; i++)



Home | Main Index | Thread Index | Old Index