diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-02-20 18:42:24 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-02-20 18:42:24 +0100 |
commit | 173bafd8007ed844eb59ae5882427b0a5a5b98a9 (patch) | |
tree | 33516083269efb110fe2c8822039656e62c04bba /sys/src/9 | |
parent | 0b016a77e42dfc33df4d46bdd4c817fa3ed5ac90 (diff) |
devusb: fix debug ctl nil crash
Diffstat (limited to 'sys/src/9')
-rw-r--r-- | sys/src/9/port/devusb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/9/port/devusb.c b/sys/src/9/port/devusb.c index 1e0ab183e..73928a04d 100644 --- a/sys/src/9/port/devusb.c +++ b/sys/src/9/port/devusb.c @@ -1347,7 +1347,8 @@ usbctl(void *a, long n) 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; |