ref: 6f8c1d7f79efb396a76a98833eb2cc31f0236c03
parent: 10808f1ee1ee3a0292794df38872ee9a03b9174d
author: cinap_lenrek <cinap_lenrek@felloff.net>
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;
--
⑨