diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-05-05 18:54:58 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-05-05 18:54:58 +0200 |
commit | 66719fb3ea15351f8860cc6696993357a60ab238 (patch) | |
tree | 83e865384531ef9557bd5faf5be4d31d9592e08b /sys/src/9/port/devusb.c | |
parent | 7d45ee4f6adc378fb6244c73abe8e46fe636beae (diff) |
kernel: fix cb->f[0] nil dereferences due to short control request
Diffstat (limited to 'sys/src/9/port/devusb.c')
-rw-r--r-- | sys/src/9/port/devusb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/src/9/port/devusb.c b/sys/src/9/port/devusb.c index e896af1bc..d24c37b42 100644 --- a/sys/src/9/port/devusb.c +++ b/sys/src/9/port/devusb.c @@ -1124,8 +1124,6 @@ epctl(Ep *ep, Chan *c, void *a, long n) nexterror(); } ct = lookupcmd(cb, epctls, nelem(epctls)); - if(ct == nil) - error(Ebadctl); i = ct->index; if(i == CMnew || i == CMspeed || i == CMhub || i == CMpreset) if(ep != ep->ep0) |