summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);