mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Initialise `restartcnt' in the newly malloc'd usbd_port structure,
as otherwise the junk it contains may cause uhub_explore to give up without ever trying to restart the port. This fixes the following errors I was seeing with a VIA UHCI controller: uhub0: port error, restarting port 1 uhub0: port error, giving up port 1
This commit is contained in:
parent
9d3be787c2
commit
f2b2cfdac0
1 changed files with 1 additions and 0 deletions
|
|
@ -308,6 +308,7 @@ USB_ATTACH(uhub)
|
|||
up->power = USB_MAX_POWER;
|
||||
else
|
||||
up->power = USB_MIN_POWER;
|
||||
up->restartcnt = 0;
|
||||
}
|
||||
|
||||
/* XXX should check for none, individual, or ganged power? */
|
||||
|
|
|
|||
Loading…
Reference in a new issue