svn commit: r187182 - head/sys/dev/usb2/storage
Andrew Thompson
thompsa at FreeBSD.org
Tue Jan 13 11:05:21 PST 2009
Author: thompsa
Date: Tue Jan 13 19:05:20 2009
New Revision: 187182
URL: http://svn.freebsd.org/changeset/base/187182
Log:
MFp4: //depot/projects/usb at 156005
Add missing set frame data pointer call. The
function call was missed when zero copy was
introduced in UMASS.
Reported by: WATANABE Kazuhiro.
Submitted by: Hans Petter Selasky
Modified:
head/sys/dev/usb2/storage/umass2.c
Modified: head/sys/dev/usb2/storage/umass2.c
==============================================================================
--- head/sys/dev/usb2/storage/umass2.c Tue Jan 13 19:05:10 2009 (r187181)
+++ head/sys/dev/usb2/storage/umass2.c Tue Jan 13 19:05:20 2009 (r187182)
@@ -2414,6 +2414,9 @@ umass_t_cbi_data_read_callback(struct us
}
xfer->timeout = sc->sc_transfer.data_timeout;
+ if (xfer->flags.ext_buffer) {
+ usb2_set_frame_data(xfer, sc->sc_transfer.data_ptr, 0);
+ }
xfer->frlengths[0] = max_bulk;
usb2_start_hardware(xfer);
return;
More information about the svn-src-head
mailing list