Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nick-nhusb]: src/sys/external/bsd/dwc2 Fix a KASSERT.
details: https://anonhg.NetBSD.org/src/rev/4039e6a22cbb
branches: nick-nhusb
changeset: 334428:4039e6a22cbb
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Mar 05 08:11:07 2016 +0000
description:
Fix a KASSERT.
I've managed to record via uaudia(4) on Raspberry PI now.
diffstat:
sys/external/bsd/dwc2/dwc2.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8bef020cbb0a -r 4039e6a22cbb sys/external/bsd/dwc2/dwc2.c
--- a/sys/external/bsd/dwc2/dwc2.c Fri Mar 04 15:30:17 2016 +0000
+++ b/sys/external/bsd/dwc2/dwc2.c Sat Mar 05 08:11:07 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc2.c,v 1.32.2.21 2016/03/04 15:30:17 skrll Exp $ */
+/* $NetBSD: dwc2.c,v 1.32.2.22 2016/03/05 08:11:07 skrll Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.32.2.21 2016/03/04 15:30:17 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.32.2.22 2016/03/05 08:11:07 skrll Exp $");
#include "opt_usb.h"
@@ -1129,7 +1129,7 @@
xfer->ux_actlen = 0;
KASSERT(xfertype != UE_ISOCHRONOUS ||
- xfer->ux_nframes < dwc2_urb->packet_count);
+ xfer->ux_nframes <= dwc2_urb->packet_count);
KASSERTMSG(xfer->ux_nframes == 0 || xfertype == UE_ISOCHRONOUS,
"nframes %d xfertype %d\n", xfer->ux_nframes, xfertype);
Home |
Main Index |
Thread Index |
Old Index