Bug fix: devcount was running from [count..0], should be [count-1..0]
This commit is contained in:
parent
722012cc0c
commit
7d0d9122c9
@ -1249,7 +1249,7 @@ usbd_driver_load(module_t mod, int what, void *arg)
|
||||
if (error)
|
||||
return 0; /* XXX maybe transient, or error? */
|
||||
|
||||
for (; devcount; devcount--)
|
||||
for (devcount--; devcount >= 0; devcount--)
|
||||
USB_RECONFIGURE(devlist[devcount]);
|
||||
|
||||
free(devlist, M_TEMP);
|
||||
|
Loading…
x
Reference in New Issue
Block a user