Bug fix: devcount was running from [count..0], should be [count-1..0]

This commit is contained in:
Nick Hibma 1999-02-20 19:22:00 +00:00
parent 722012cc0c
commit 7d0d9122c9

View File

@ -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);