mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Set the endpoint on the preallocated fifo so it doesnt get matched as an
endpoint fifo. Reported by: Pieter de Goeje
This commit is contained in:
parent
2e92f03abd
commit
2989a67790
1 changed files with 2 additions and 0 deletions
|
|
@ -1610,6 +1610,7 @@ usb2_fifo_attach(struct usb2_device *udev, void *priv_sc,
|
|||
/* initialise FIFO structures */
|
||||
|
||||
f_tx->fifo_index = n + USB_FIFO_TX;
|
||||
f_tx->dev_ep_index = -1;
|
||||
f_tx->priv_mtx = priv_mtx;
|
||||
f_tx->priv_sc0 = priv_sc;
|
||||
f_tx->methods = pm;
|
||||
|
|
@ -1617,6 +1618,7 @@ usb2_fifo_attach(struct usb2_device *udev, void *priv_sc,
|
|||
f_tx->udev = udev;
|
||||
|
||||
f_rx->fifo_index = n + USB_FIFO_RX;
|
||||
f_rx->dev_ep_index = -1;
|
||||
f_rx->priv_mtx = priv_mtx;
|
||||
f_rx->priv_sc0 = priv_sc;
|
||||
f_rx->methods = pm;
|
||||
|
|
|
|||
Loading…
Reference in a new issue