socsvn commit: r224055 -
soc2011/oleksandr/oleksandr-head/head/sys/dev/usb/storage
oleksandr at FreeBSD.org
oleksandr at FreeBSD.org
Fri Jul 8 18:05:06 UTC 2011
Author: oleksandr
Date: Fri Jul 8 18:05:05 2011
New Revision: 224055
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=224055
Log:
Sorry, I was wrong, variable status_test in umass driver
Modified:
soc2011/oleksandr/oleksandr-head/head/sys/dev/usb/storage/umass.c
Modified: soc2011/oleksandr/oleksandr-head/head/sys/dev/usb/storage/umass.c
==============================================================================
--- soc2011/oleksandr/oleksandr-head/head/sys/dev/usb/storage/umass.c Fri Jul 8 17:45:38 2011 (r224054)
+++ soc2011/oleksandr/oleksandr-head/head/sys/dev/usb/storage/umass.c Fri Jul 8 18:05:05 2011 (r224055)
@@ -2553,7 +2553,6 @@
switch (status) {
case STATUS_CMD_OK:
ccb->ccb_h.status = CAM_REQ_CMP;
- ccb->ccb_h.status_test = CAM_REQ_CMP_ERR;
if ((sc->sc_quirks & READ_CAPACITY_OFFBY1) &&
(ccb->ccb_h.func_code == XPT_SCSI_IO) &&
(ccb->csio.cdb_io.cdb_bytes[0] == READ_CAPACITY)) {
@@ -2564,6 +2563,7 @@
maxsector = scsi_4btoul(rcap->addr) - 1;
scsi_ulto4b(maxsector, rcap->addr);
}
+ ccb->ccb_h.status_test = CAM_REQ_CMP_ERR;
/*
* We have to add SVPD_UNIT_SERIAL_NUMBER to the list
* of pages supported by the device - otherwise, CAM
More information about the svn-soc-all
mailing list