mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
Set the pipe pointer before calling usbd_transfer() as its possible for the
xfer callback to be invoked on error. MFC after: 2 weeks
This commit is contained in:
parent
8e097e5b32
commit
70e1b678ee
1 changed files with 1 additions and 1 deletions
|
|
@ -237,8 +237,8 @@ usbd_open_pipe_intr(usbd_interface_handle iface, u_int8_t address,
|
|||
USBD_NO_TIMEOUT, cb);
|
||||
ipipe->intrxfer = xfer;
|
||||
ipipe->repeat = 1;
|
||||
err = usbd_transfer(xfer);
|
||||
*pipe = ipipe;
|
||||
err = usbd_transfer(xfer);
|
||||
if (err != USBD_IN_PROGRESS && err)
|
||||
goto bad2;
|
||||
return (USBD_NORMAL_COMPLETION);
|
||||
|
|
|
|||
Loading…
Reference in a new issue