ref: 173bafd8007ed844eb59ae5882427b0a5a5b98a9
parent: 0b016a77e42dfc33df4d46bdd4c817fa3ed5ac90
author: cinap_lenrek <[email protected]>
date: Fri Feb 20 13:42:24 EST 2015
devusb: fix debug ctl nil crash
--- a/sys/src/9/port/devusb.c
+++ b/sys/src/9/port/devusb.c
@@ -1347,7 +1347,8 @@
print("usb: debug %d\n", debug);
for(i = 0; i < epmax; i++)
if((ep = getep(i)) != nil){
- ep->hp->debug(ep->hp, debug);
+ if(ep->hp->debug != nil)
+ ep->hp->debug(ep->hp, debug);
putep(ep);
}
break;