summaryrefslogtreecommitdiff
path: root/sys/dev/usb/umass.c
diff options
context:
space:
mode:
authorChristopher Pascoe <pascoe@cvs.openbsd.org>2005-05-24 04:51:05 +0000
committerChristopher Pascoe <pascoe@cvs.openbsd.org>2005-05-24 04:51:05 +0000
commit4e74ae5c904134720c8f42d90bf72e8dc1a5248e (patch)
tree3db32935c8177c9ad2775510057215bb4465ec7f /sys/dev/usb/umass.c
parent7bdbcab47401a1871cac32b6f1e10554b24fda36 (diff)
Set the data length on CBI data transfers.
ok dlg@
Diffstat (limited to 'sys/dev/usb/umass.c')
-rw-r--r--sys/dev/usb/umass.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c
index 53ec46d7d77..6dff4f0b197 100644
--- a/sys/dev/usb/umass.c
+++ b/sys/dev/usb/umass.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: umass.c,v 1.41 2005/05/15 00:23:33 krw Exp $ */
+/* $OpenBSD: umass.c,v 1.42 2005/05/24 04:51:04 pascoe Exp $ */
/* $NetBSD: umass.c,v 1.116 2004/06/30 05:53:46 mycroft Exp $ */
/*
@@ -1549,6 +1549,7 @@ umass_cbi_transfer(struct umass_softc *sc, int lun,
sc->transfer_state = TSTATE_CBI_COMMAND;
/* Send the Command Block from host to device via control endpoint. */
+ sc->cbw.bCDBLength = cmdlen;
bzero(sc->cbw.CBWCDB, sizeof(sc->cbw.CBWCDB));
memcpy(sc->cbw.CBWCDB, cmd, cmdlen);
umass_adjust_transfer(sc);