Module Name: src
Committed By: riastradh
Date: Mon Apr 17 07:13:30 UTC 2017
Modified Files:
src/sys/rump/dev/lib/libugenhc: ugenhc.c
Log Message:
Fix bulk xfer buffer with usedma = false.
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/rump/dev/lib/libugenhc/ugenhc.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/rump/dev/lib/libugenhc/ugenhc.c
diff -u src/sys/rump/dev/lib/libugenhc/ugenhc.c:1.25 src/sys/rump/dev/lib/libugenhc/ugenhc.c:1.26
--- src/sys/rump/dev/lib/libugenhc/ugenhc.c:1.25 Mon Apr 17 05:11:05 2017
+++ src/sys/rump/dev/lib/libugenhc/ugenhc.c Mon Apr 17 07:13:30 2017
@@ -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 @@ rumpusb_device_bulk_start(struct usbd_xf
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++)