shithub: riscv

Download patch

ref: fb9c05bbefed4ef372f4e62e867d4209c473838f
parent: d9b80de6d55e351697b06c9096229ad6c4391278
author: aiju <[email protected]>
date: Mon May 23 03:01:56 EDT 2011

fixed usb/serial

--- a/sys/src/cmd/usb/serial/serial.c
+++ b/sys/src/cmd/usb/serial/serial.c
@@ -702,7 +702,7 @@
 	 */
 	eps = ser->dev->usb->conf[0]->iface[ifc]->ep;
 
-	for(i = 0; i < Niface; i++){
+	for(i = 0; i < Nep; i++){
 		if((ep = eps[i]) == nil)
 			continue;
 		if(ser->hasepintr && ep->type == Eintr &&