Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/sys/dev/usb Pull up following revision(s) (requested by a...
details: https://anonhg.NetBSD.org/src/rev/e1f8f5cb5abf
branches: netbsd-6
changeset: 776896:e1f8f5cb5abf
user: martin <martin%NetBSD.org@localhost>
date: Wed Feb 11 14:35:13 2015 +0000
description:
Pull up following revision(s) (requested by aymeric in ticket #1250):
sys/dev/usb/usbdi.c: revision 1.163
clip xfer->actlen also in the !DIAGNOSTIC case
diffstat:
sys/dev/usb/usbdi.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r cceeb93bb44b -r e1f8f5cb5abf sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c Wed Feb 11 14:04:19 2015 +0000
+++ b/sys/dev/usb/usbdi.c Wed Feb 11 14:35:13 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdi.c,v 1.134 2011/11/27 03:25:00 jmcneill Exp $ */
+/* $NetBSD: usbdi.c,v 1.134.4.1 2015/02/11 14:35:13 martin Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdi.c,v 1.28 1999/11/17 22:33:49 n_hibma Exp $ */
/*
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.134 2011/11/27 03:25:00 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.134.4.1 2015/02/11 14:35:13 martin Exp $");
#include "opt_compat_netbsd.h"
#include "opt_usb.h"
@@ -780,13 +780,13 @@
if (!(xfer->flags & USBD_NO_COPY) && xfer->actlen != 0 &&
usbd_xfer_isread(xfer)) {
+ if (xfer->actlen > xfer->length) {
#ifdef DIAGNOSTIC
- if (xfer->actlen > xfer->length) {
printf("usb_transfer_complete: actlen > len %d > %d\n",
xfer->actlen, xfer->length);
+#endif
xfer->actlen = xfer->length;
}
-#endif
memcpy(xfer->buffer, KERNADDR(dmap, 0), xfer->actlen);
}
Home |
Main Index |
Thread Index |
Old Index