diff options
author | n_hibma <n_hibma@FreeBSD.org> | 2014-08-05 08:48:24 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 2014-08-05 08:48:24 +0000 |
commit | 279fc7be5ae5836a609b3592ac578899683622f1 (patch) | |
tree | b3a45cf2f7181cb6e9134fadc522bd4f959686be | |
parent | 95d5cc3d765e2a8c6bc939a1897bf443b41974f0 (diff) | |
download | FreeBSD-src-279fc7be5ae5836a609b3592ac578899683622f1.zip FreeBSD-src-279fc7be5ae5836a609b3592ac578899683622f1.tar.gz |
Reset the error value in the softc before starting a BBB transfer.
PR: 145319
Submitted by: rozhuk.im gmail.com
MFC after: 3 days
-rw-r--r-- | sys/dev/usb/usb_msctest.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_msctest.c b/sys/dev/usb/usb_msctest.c index f0cb1a5..df4277c 100644 --- a/sys/dev/usb/usb_msctest.c +++ b/sys/dev/usb/usb_msctest.c @@ -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); |