shithub: riscv

Download patch

ref: 56405e091963c8b2dc9d71aa624e33c582102949
parent: 9226caf2a3bf88258665f4e3786c6abb8820d308
author: aiju <devnull@localhost>
date: Wed Mar 7 03:45:06 EST 2018

usbehci: catch interrupt in tsleep

--- a/sys/src/9/port/usbehci.c
+++ b/sys/src/9/port/usbehci.c
@@ -3063,7 +3063,10 @@
 	 */
 	wakeup(iso);
 	diprint("cancelisoio iso %#p waiting for I/O to cease\n", iso);
-	tsleep(&up->sleep, return0, 0, 5);
+	if(!waserror()){
+		tsleep(&up->sleep, return0, 0, 5);
+		poperror();
+	}
 	qlock(iso);
 	qunlock(iso);
 	diprint("cancelisoio iso %#p releasing iso\n", iso);