mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Reset the error value in the softc before starting a BBB transfer.
PR: 145319 Submitted by: rozhuk.im gmail.com MFC after: 3 days
This commit is contained in:
parent
89fc30aaa5
commit
e28d2b2275
1 changed files with 1 additions and 0 deletions
|
|
@ -485,6 +485,7 @@ bbb_command_start(struct bbb_transfer *sc, uint8_t dir, uint8_t lun,
|
|||
sc->data_rem = data_len;
|
||||
sc->data_timeout = (data_timeout + USB_MS_HZ);
|
||||
sc->actlen = 0;
|
||||
sc->error = 0;
|
||||
sc->cmd_len = cmd_len;
|
||||
memset(&sc->cbw->CBWCDB, 0, sizeof(sc->cbw->CBWCDB));
|
||||
memcpy(&sc->cbw->CBWCDB, cmd_ptr, cmd_len);
|
||||
|
|
|
|||
Loading…
Reference in a new issue