From 4e74ae5c904134720c8f42d90bf72e8dc1a5248e Mon Sep 17 00:00:00 2001 From: Christopher Pascoe Date: Tue, 24 May 2005 04:51:05 +0000 Subject: Set the data length on CBI data transfers. ok dlg@ --- sys/dev/usb/umass.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/usb/umass.c') 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); -- cgit v1.2.3