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
@ -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 New Issue
Block a user